Crate sw_sw_logger_rs

Source

Enums§

LogLevel
Verbose -> Logs all messages, regardless of LogType. Debug -> Logs messages marked as LogType::Error, LogType::Warning and LogType::Debug. Default -> Logs messages marked as LogType::Error and LogType::Warning. ErrorsOnly -> Only logs messages marked as LogType::Error.
LogType

Functions§

log
set_level
Sets the level of logging. See LogLevel for a description of what each level means.
set_path
Sets the default path the logger uses to write to. If left as an empty String (or set as one), the logger won’t write to a file; only to the stdout and the stderr.