setting the log level before doing anything else