Function systemd_journal_logger::init_with_extra_fields
source · pub fn init_with_extra_fields<K, V>(
extra_fields: Vec<(K, V)>
) -> Result<(), SetLoggerError>where
K: AsRef<str> + Sync + Send + 'static,
V: AsRef<str> + Sync + Send + 'static,Expand description
Initialize journal logging with extra journal fields.
Create a new JournalLog with the given fields and set it as logger
with log::set_boxed_logger.
This function can only be called once during the lifetime of a program.
See init for more information about log levels and error behaviour,
and JournalLog::with_extra_fields for details about extra_fields.