pub fn new() -> Logger {
        Logger {
            colors: DEFAULT_COLORS && atty::is(atty::Stream::Stdout) && atty::is(atty::Stream::Stderr),
            include_level: DEFAULT_INCLUDE_LEVEL,
            include_line_numbers: DEFAULT_INCLUDE_LINE_NUMBERS,
            include_module_path: DEFAULT_INCLUDE_MODULE_PATH,
            level: DEFAULT_LEVEL,
            offset: DEFAULT_OFFSET,
            separator: String::from(DEFAULT_SEPARATOR),
            verbosity: None,
            error: Level {
                output: Output::Stderr,
                color: DEFAULT_ERROR_COLOR,
            },
            warn: Level {
                output: Output::Stderr,
                color: DEFAULT_WARN_COLOR,
            },
            info: Level {
                output: Output::Stderr,
                color: DEFAULT_INFO_COLOR,
            },
            debug: Level {
                output: Output::Stderr,
                color: DEFAULT_DEBUG_COLOR,
            },
            trace: Level {
                output: Output::Stderr,
                color: DEFAULT_TRACE_COLOR,
            },
            module_path_filters: Vec::new(),
        }
    }
/// Creates a new instance of the verbosity-based logger.
///
/// The default level is WARN. Color is enabled if the parent application or library is running
/// from a terminal, i.e. running a tty. The default separator is the ": " string. The default
/// output format is `module path: message`. The following default colors are used:
///
/// | Level | Color         |
/// |-------|---------------|
/// | Error | Bright Red    |
/// | Warn  | Bright Yellow |
/// | Info  | Bright Green  |
/// | Debug | Light Grey    |
/// | Trace | Grey          |
Creates a new instance of the verbosity-based logger.
The default level is WARN. Color is enabled if the parent application or library is running
from a terminal, i.e. running a tty. The default separator is the ": " string. The default
output format is `module path: message`. The following default colors are used.


Creates a new instance of the verbosity - based logger . The default level is WARN . Color is enabled if the parent application or library is running from a terminal i . e . running a tty . The default separator is the " : " string . The default output format is ` module path : message ` . The following default colors are used .
pub fn new() -> Logger {
        Logger {
            colors: DEFAULT_COLORS && atty::is(atty::Stream::Stdout) && atty::is(atty::Stream::Stderr),
            include_level: DEFAULT_INCLUDE_LEVEL,
            include_line_numbers: DEFAULT_INCLUDE_LINE_NUMBERS,
            include_module_path: DEFAULT_INCLUDE_MODULE_PATH,
            level: DEFAULT_LEVEL,
            offset: DEFAULT_OFFSET,
            separator: String::from(DEFAULT_SEPARATOR),
            verbosity: None,
            error: Level {
                output: Output::Stderr,
                color: DEFAULT_ERROR_COLOR,
            },
            warn: Level {
                output: Output::Stderr,
                color: DEFAULT_WARN_COLOR,
            },
            info: Level {
                output: Output::Stderr,
                color: DEFAULT_INFO_COLOR,
            },
            debug: Level {
                output: Output::Stderr,
                color: DEFAULT_DEBUG_COLOR,
            },
            trace: Level {
                output: Output::Stderr,
                color: DEFAULT_TRACE_COLOR,
            },
            module_path_filters: Vec::new(),
        }
    }
pub fn new ( ) -> Logger { Logger { colors : DEFAULT_COLORS && atty :: is ( atty :: Stream :: Stdout ) && atty :: is ( atty :: Stream :: Stderr ) , include_level : DEFAULT_INCLUDE_LEVEL , include_line_numbers : DEFAULT_INCLUDE_LINE_NUMBERS , include_module_path : DEFAULT_INCLUDE_MODULE_PATH , level : DEFAULT_LEVEL , offset : DEFAULT_OFFSET , separator : String :: from ( DEFAULT_SEPARATOR ) , verbosity : None , error : Level { output : Output :: Stderr , color : DEFAULT_ERROR_COLOR , } , warn : Level { output : Output :: Stderr , color : DEFAULT_WARN_COLOR , } , info : Level { output : Output :: Stderr , color : DEFAULT_INFO_COLOR , } , debug : Level { output : Output :: Stderr , color : DEFAULT_DEBUG_COLOR , } , trace : Level { output : Output :: Stderr , color : DEFAULT_TRACE_COLOR , } , module_path_filters : Vec :: new ( ) , } }
Creates a new instance of the verbosity-based logger.
Creates a new instance of the verbosity - based logger .