Crate 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
Log a message to stdout and, optionally, a file. This function will format the message with a type-signifier and the timestamp of the moment of logging.
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.