Initialize logging with a log level