pub struct Logging {
pub level: String,
pub format_rfc3339: bool,
pub format_json: bool,
pub to_console: bool,
pub to_syslog: bool,
pub syslog_rfc: bool,
pub syslog_uri: String,
pub file: String,
pub disable_file_logging: bool,
pub file_max_rolls: usize,
pub file_max_size: u64,
}Expand description
Logging configuration, read before runtime authority exists.
Fields§
§level: StringMinimum severity a record must reach to be emitted.
format_rfc3339: boolWhether log timestamps are formatted as RFC 3339.
format_json: boolWhether log records are emitted as JSON.
to_console: boolWhether logs are written to the console.
to_syslog: boolWhether logs are forwarded to syslog.
syslog_rfc: boolWhether syslog messages use the RFC 5424 framing.
syslog_uri: StringDestination URI for syslog forwarding.
file: StringPath of the log file.
disable_file_logging: boolWhether file logging is turned off entirely.
file_max_rolls: usizeNumber of rotated log files retained.
file_max_size: u64Maximum size, in bytes, a log file reaches before it is rotated.
Trait Implementations§
impl StructuralPartialEq for Logging
Auto Trait Implementations§
impl Freeze for Logging
impl RefUnwindSafe for Logging
impl Send for Logging
impl Sync for Logging
impl Unpin for Logging
impl UnwindSafe for Logging
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more