Function cgl_rs::logger::log

source ·
pub fn log(level: LogLevel, message: &str)
Expand description

Logs a message with the specified log level.

Arguments

  • level - The log level of the message.
  • message - A string slice containing the message to log.

Example

cgl_rs::logger::init(true);
cgl_rs::logger::log(cgl_rs::logger::LogLevel::Info, "This is an info message.");
// ...
cgl_rs::logger::shutdown();