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

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.

Controls minimum level of messages to be logged.

Messages lower than this level will not be printed.

Provided Methods

Print a indicating syslog level with each message

Allows systemd to record in system log at appropriate level.

Trait Implementations

impl<'a> LogOptions for &'a LogOptions
[src]

[src]

Print a indicating syslog level with each message Read more

[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

[src]

Controls minimum level of messages to be logged. Read more

Implementors