ZHRXXLib
  • Quickstart
  • modules
    • error
      • ErrorSeverity
    • event
    • utils
      • logger
      • os_
      • requests
      • buffer
      • useful
Powered by GitBook
On this page
  1. modules
  2. utils

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.

PreviousutilsNextos_

Last updated 8 months ago