Added file logging when console logging