forestry/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//! A simple, efficient, concise, and elegant logging library for Rust.
//!
//! Provides a [Logger](logs::Logger) struct that can be used to log messages to the console.
//! The messages are coloured based on their severity level.
//! Logs are output with a unique 16-bit log index.
//! The log also contains a symbol to represent the severity level.
//!
//! Most of the time, you will only need to initialize a [Logger](logs::Logger) struct.
//! After this,you can use the 
//! - [info](logs::Logger::info), 
//! - [warn](logs::Logger::warn),
//! - [error](logs::Logger::error), 
//! - [success](logs::Logger::success), and
//! - [critical](logs::Logger::critical) methods to log messages.
//!
//! All formatting can be configured using the [cfg()](logs::Logger::cfg) method in conjunction
//! with the [FormatOptions](logs::FormatOptions) enumerator.
//! See the [logs] module for more details.

pub mod logs;
pub mod prelude {
    pub use crate::logs::*;
}
#[cfg(test)]
mod tests;