properly setting log level