[−][src]Struct casperlabs_engine_shared::logging::log_settings::LogSettings
container for logsettings from the host
Fields
log_level_filter: LogLevelFilterprocess_id: ProcessIdprocess_name: ProcessNamecontains a string identifying the running process by convention should be a single token without whitespace
host_name: HostNameMethods
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 conventionlog_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]
fn clone(&self) -> LogSettings[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for LogSettings[src]
impl LogSettingsProvider for LogSettings[src]
fn filter(&self, log_level: LogLevel) -> bool[src]
fn get_process_id(&self) -> ProcessId[src]
fn get_process_name(&self) -> ProcessName[src]
fn get_host_name(&self) -> HostName[src]
fn get_log_level_filter(&self) -> LogLevelFilter[src]
impl Serialize for LogSettings[src]
Auto Trait Implementations
impl RefUnwindSafe for LogSettings
impl Send for LogSettings
impl Sync for LogSettings
impl Unpin for LogSettings
impl UnwindSafe for LogSettings
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
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> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,