Struct stderrlog::StdErrLog
[−]
[src]
pub struct StdErrLog { /* fields omitted */ }
Data specific to this logger
Methods
impl StdErrLog
[src]
fn new() -> StdErrLog
[src]
creates a new stderr logger
fn verbosity(&mut self, verbosity: usize) -> &mut StdErrLog
[src]
Sets the verbosity level of messages that will be displayed
fn quiet(&mut self, quiet: bool) -> &mut StdErrLog
[src]
silence all output, no matter the value of verbosity
fn timestamp(&mut self, timestamp: Timestamp) -> &mut StdErrLog
[src]
Enables or disables the use of timestamps in log messages
fn color(&mut self, choice: ColorChoice) -> &mut StdErrLog
[src]
Enables or disables the use of color in log messages
fn module<T: Into<String>>(&mut self, module: T) -> &mut StdErrLog
[src]
specify a module to allow to log to stderr
fn modules<T: Into<String>, I: IntoIterator<Item = T>>(
&mut self,
modules: I
) -> &mut StdErrLog
[src]
&mut self,
modules: I
) -> &mut StdErrLog
specifiy modules to allow to log to stderr
fn init(&self) -> Result<(), SetLoggerError>
[src]
sets the the logger as active
Trait Implementations
impl Debug for StdErrLog
[src]
impl Clone for StdErrLog
[src]
fn clone(&self) -> StdErrLog
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Log for StdErrLog
[src]
fn enabled(&self, metadata: &LogMetadata) -> bool
[src]
Determines if a log message with the specified metadata would be logged. Read more
fn log(&self, record: &LogRecord)
[src]
Logs the LogRecord
. Read more