Skip to main content

init

Function init 

Source
pub fn init()
Expand description

Install the process logger, reading log.format (text | json | compact, default text) and log.level (default info; RUST_LOG env wins) from the application configuration. -Dkey=value runtime arguments (the JVM -D analog) are loaded into the override registry first, so hello_world -- -Dlog.format=json switches format at launch. Idempotent — a second call is a no-op (the log crate accepts one logger per process).