[][src]Struct stderrlog::StdErrLog

pub struct StdErrLog { /* fields omitted */ }

Data specific to this logger

Methods

impl StdErrLog[src]

pub fn new() -> StdErrLog[src]

creates a new stderr logger

pub fn verbosity(&mut self, verbosity: usize) -> &mut StdErrLog[src]

Sets the verbosity level of messages that will be displayed

pub fn quiet(&mut self, quiet: bool) -> &mut StdErrLog[src]

silence all output, no matter the value of verbosity

pub fn show_level(&mut self, levels: bool) -> &mut StdErrLog[src]

Enables or disables the use of timestamps in log messages (default is true)

pub fn timestamp(&mut self, timestamp: Timestamp) -> &mut StdErrLog[src]

Enables or disables the use of timestamps in log messages

pub fn color(&mut self, choice: ColorChoice) -> &mut StdErrLog[src]

Enables or disables the use of color in log messages

pub fn module<T: Into<String>>(&mut self, module: T) -> &mut StdErrLog[src]

specify a module to allow to log to stderr

pub fn modules<T: Into<String>, I: IntoIterator<Item = T>>(
    &mut self,
    modules: I
) -> &mut StdErrLog
[src]

specifiy modules to allow to log to stderr

pub fn init(&mut self) -> Result<(), SetLoggerError>[src]

sets the the logger as active

Trait Implementations

impl Clone for StdErrLog[src]

impl Default for StdErrLog[src]

impl Debug for StdErrLog[src]

impl Log for StdErrLog[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]