Set the log level correctly for the custom logger.