reworks logging a bit (removes the need to create the log file first)