Function builder_cpp::utils::log
source · pub fn log(level: LogLevel, message: &str)Expand description
This function is used to log messages to the console
Arguments
level- The log level of the messagemessage- The message to log
Example
log(LogLevel::Info, "Hello World!");
log(LogLevel::Error, &format!("Something went wrong! {}", error));Level setting
The log level can be set by setting the environment variable BUILDER_CPP_LOG_LEVEL
to one of the following values:
DebugInfoLogWarnErrorIf the environment variable is not set, the default log level isLog