logger

Logger Documetation

  • LogLevel

Defines the log levels: Debug, Info, Warning, and Error.

  • log(level: LogLevel, msg: &str, log_to_file: bool)

Logs a message with the specified log level, printing it to the console and optionally writing it to a file.

  • debug(msg: &str, log_to_file: bool)

Logs a message with Debug level.

  • info(msg: &str, log_to_file: bool)

Logs a message with Info level.

  • warning(msg: &str, log_to_file: bool)

Logs a message with Warning level.

  • error(msg: &str, log_to_file: bool)

Logs a message with Error level.

Last updated