add logToFile option for Logger