Struct crowbook::Logger [] [src]

pub struct Logger { /* fields omitted */ }

Logs info and warning message and choose whether to display them according to verbosity

Methods

impl Logger
[src]

Creates a new logger with defined verbosity

Sets verbosity

Prints a debug message

Prints an info message

Prints a warning message

Prints an error message

Prints a message if logger's verbosity <= level

Equivalent of log(Debug, s)

Equivalent of log(Info, s)

Equivalent of log(Warning, s)

Equivalent of log(Error, s)

Trait Implementations

impl Debug for Logger
[src]

Formats the value using the given formatter.