prettylogger/
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
26
27
28
29
/// A feature-rich logger library to automatically handle log formatting and
/// filtering.
///
/// # Using in your project:
/// ```
/// // Include stuff from the library:
/// use prettylogger::logging::Logger;
/// use prettylogger::filtering::Verbosity;
///
/// // A `Logger struct with default configuration`
/// let mut logger = Logger::default();///
///
/// // Configure `Logger` to your liking
/// logger.set_verbosity(&Verbosity::All); // Don't suppress any log messages
///
/// // Print logs: 
/// logger.debug("A debug message!");
/// logger.info("Info message!");
/// logger.warning("A warning!");
/// logger.error("An error!");
/// logger.fatal("A fatal error!");
/// ```

pub mod logging;
pub mod setters;
pub mod colors;
pub mod filtering;
mod json;
mod fileio;