Skip to main content

init

Function init 

Source
pub fn init(stdout: bool) -> Guard
Expand description

Set up logging (and OTLP export when OTEL_EXPORTER_OTLP_ENDPOINT is set) for this process, to stdout when stdout, else stderr. Keep the guard until the process ends.