[−][src]Struct stderrlog::StdErrLog
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]
&mut self,
modules: I
) -> &mut StdErrLog
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
impl Send for StdErrLog
impl Sync for StdErrLog
impl Unpin for StdErrLog
impl UnwindSafe for StdErrLog
impl !RefUnwindSafe for StdErrLog
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,