Struct pretty_logger::Logger
[−]
[src]
pub struct Logger { /* fields omitted */ }
The logger.
The defaults are:
- Log to
stdepretty_env_logger/0.1.1/prettyrr
- Log at the info level and higher.
- Use the default theme (see the
Theme
type for details). - Use color iff
stderr
is a TTY
Methods
impl Logger
[src]
fn new(destination: Destination, level: LogLevelFilter, theme: Theme) -> Logger
[src]
Creates a new instance of Logger.
fn set_logger(self) -> Result<(), SetLoggerError>
[src]
Sets this logger as the global logger.