Function systemd_journal_logger::init[][src]

pub fn init() -> Result<(), SetLoggerError>
Expand description

Initialize journal logging.

Set LOG as logger with log::set_logger.

This function can only be called once during the lifetime of a program.

Default level

This function does not configure any default level for log; you need to configure the maximum level explicitly with log::set_max_level, as log normally defaults to log::LevelFilter::Off which disables all logging.

Errors

This function returns an error if any logger was previously registered.