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: ConfigValue<String>,
pub disable_file_logging: bool,
pub file_max_rolls: usize,
pub file_max_size: ConfigValue<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: ConfigValue<String>Path of the log file.
A defaulted or explicitly empty path selects the platform-specific ADP log file path.
disable_file_logging: boolWhether file logging is turned off entirely.
file_max_rolls: usizeNumber of rotated log files retained.
Defaults to 1. The file writer retains one rotated file when this is 0. A negative value is
rejected during translation.
file_max_size: ConfigValue<u64>Maximum size, in bytes, a log file reaches before it is rotated.
When defaulted, the logging stack keeps its own 10 MiB threshold instead.