[−][src]Module logger_rs::logger
A logging utility library for Rust
Example:
let logger = Logger::default(); logger.warn("this is a warning!"); // or using a custom style and bridge let logger = Logger::new() .style(Box::new(Arrow::default())) .bridge(Box::new(Console::default()))
Structs
Console | Bridge used to log onto the console. |
File | Bridge used to log inside a file. There are two destination files, one for normal logs and the other for the errors. The default destinations are both the same. |
Logger | Main Logger. Each logger has its own bridge where the messages are transferred. |
Enums
Importance | Level of importance of the message |
Traits
Bridge | The bridge receives a message and transfers it to a specific destination (e.g: console or a file). You can make your own bridge by implementing this trait. |