Function base::syslog::init

source ·
pub fn init() -> Result<(), Error>
Expand description

Initialize the syslog connection and internal variables.

This should only be called once per process before any other threads have been spawned or any signal handlers have been registered. Every call made after the first will panic.

Use init_with_filter to initialize with filtering