[][src]Struct casperlabs_engine_shared::logging::Settings

pub struct Settings { /* fields omitted */ }

Settings used to initialize the global logger.

Implementations

impl Settings[src]

pub fn new(max_level: LevelFilter) -> Self[src]

Constructs new Settings, where max_level sets the verbosity level above which messages will be filtered out.

Off is the lowest level, through Error, Warn, Info, Debug to Trace at the highest level.

By default, logging of metrics is disabled (see with_metrics_enabled()), and the logging-style is set to Style::Structured.

pub fn with_metrics_enabled(self, value: bool) -> Self[src]

If true, log messages created via log_metric() and log_duration() are logged, regardless of the log-level.

pub fn with_style(self, value: Style) -> Self[src]

Sets the logging style to structured or human-readable.

Trait Implementations

impl Clone for Settings[src]

impl Copy for Settings[src]

impl Debug 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> FromBits<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,