modify log level and send log to file