Struct mlzlog::Settings[][src]

pub struct Settings {
    pub show_appname: bool,
    pub debug: bool,
    pub use_stdout: bool,
    pub stdout_color: bool,
    pub use_journal: bool,
}

Settings struct for mlzlog::init().

It is recommended to use this as

let settings = Settings { show_appname: false, .. Settings::default() };

to avoid code breaking when new options are added.

If show_appname is true, the appname is prepended to console messages. If debug is true, debug messages are output. If use_stdout is true, a ConsoleAppender is created to log to stdout. If use_journal is true, messages will be written to journald.

Fields

show_appname: booldebug: booluse_stdout: boolstdout_color: booluse_journal: bool

Trait Implementations

impl Clone for Settings[src]

impl Debug for Settings[src]

impl Default for Settings[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.