Crate flexi_syslog

Source
Expand description

A flexi-logger LogWriter that formats and transports log records to the syslog using the syslog crate.

Re-exports§

pub use log_writer::Formatter5424;
pub use log_writer::LogWriter;

Modules§

log_writer
The LogWriter that adapts flexi-logger log records to the syslog.

Functions§

default_format
A default formatter if you don’t want to think to hard about it. Format: {record.level} {record.target} l:{record.line} {record.args}
default_level_mapping
A default mapping from log::Level to Severity
exe_name_from_env
Return the executable name.

Type Aliases§

LevelToSeverity
Signature for a custom mapping function that maps the rust log levels to values of the syslog Severity.