I should wait a little while before the log file is created, otherwise I may get an empty file..