minor fixes to the log file config and added a warning if log level is
not debug.