pub async fn log(text: &str, level: Level)Expand description
Log a message with a specific log level. This function sends the log message to the background worker for processing. If the logger is not initialized, it will print the message directly to the console.
ยงArguments
- text- The log message to be logged.
- level- The log level of the message.