Better file logging
Corrected a stupid conflict of the log file