Skip to main content

init

Function init 

Source
pub fn init(service: &str, default_level: &str)
Expand description

Installs the process-wide subscriber. Safe to call more than once; only the first call has any effect.

service names the binary and is attached to the startup line so a merged log tells unv-server apart from a desktop app hosting the same router. default_level applies when neither UNV_LOG nor RUST_LOG is set.