Function logcontrol_tracing::from_log_level
source · pub fn from_log_level(level: LogLevel) -> Result<Level, LogControl1Error>
Expand description
Convert logcontrol::LogLevel
to [tracing::Level
].
Return an error if the systemd log level is not supported, i.e. does not map to a
corresponding [tracing::Level
].