[][src]Struct casperlabs_engine_shared::logging::log_settings::LogSettings

pub struct LogSettings {
    pub log_level_filter: LogLevelFilter,
    pub process_id: ProcessId,
    pub process_name: ProcessName,
    pub host_name: HostName,
}

container for logsettings from the host

Fields

log_level_filter: LogLevelFilterprocess_id: ProcessIdprocess_name: ProcessName

contains a string identifying the running process by convention should be a single token without whitespace

host_name: HostName

Methods

impl LogSettings[src]

pub fn new(process_name: &str, log_level_filter: LogLevelFilter) -> LogSettings[src]

Arguments

  • process_name - Name or key identifying the current process; should have no spaces or punctuations by convention
  • log_level_filter - Only log messages with priority >= to this log level will be logged

pub fn filter(&self, log_level: LogLevel) -> bool[src]

if lvl is less than settings loglevel, associated msg should be filtered out

Trait Implementations

impl Clone for LogSettings[src]

impl Debug for LogSettings[src]

impl LogSettingsProvider for LogSettings[src]

impl Serialize for LogSettings[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> 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>,