console logging is doing first then file logging