Trait system_service::LogOptions
[−]
[src]
pub trait LogOptions { fn target_filter(&self) -> Vec<String>; fn max_log_level(&self) -> LevelFilter; fn include_systemd_level(&self) -> bool { ... } }
Additional requirents for CLI options to initialize the logging subsystem
Required Methods
fn target_filter(&self) -> Vec<String>
Only messages with this prefix will be filtered. For instance, if the package name is "foobar", returning a string "foobar" here will cause only messages from the main package to be emitted.
fn max_log_level(&self) -> LevelFilter
Controls minimum level of messages to be logged.
Messages lower than this level will not be printed.
Provided Methods
fn include_systemd_level(&self) -> bool
Print a
Allows systemd to record in system log at appropriate level.
Trait Implementations
impl<'a> LogOptions for &'a LogOptions
[src]
fn include_systemd_level(&self) -> bool
[src]
Print a indicating syslog level with each message Read more
fn target_filter(&self) -> Vec<String>
[src]
Only messages with this prefix will be filtered. For instance, if the package name is "foobar", returning a string "foobar" here will cause only messages from the main package to be emitted. Read more
fn max_log_level(&self) -> LevelFilter
[src]
Controls minimum level of messages to be logged. Read more
Implementors
impl<'a> LogOptions for &'a LogOptions