Pass the log level when using the log API