Reopen the log file. This is mainly useful if you use an external log rotation tool, which moves under your feet. Note that on Windows you probably need a specific API to rename the file, as it's not supported to simply use os.rename, for example. N)