init

Function init 

Source
pub fn init(config: &LoggingConfig)
Expand description

Initializes the global tracing subscriber with structured logging.

Reads RUST_LOG for filter directives; falls back to INFO-level logging with TRACE-level for internal objectstore crates. Log format (pretty, simplified, or json) is determined by config.format, defaulting to pretty when a terminal is attached.

When built with the sentry feature, also attaches a Sentry tracing layer if the Sentry client has been initialized. ERROR and WARN events become Sentry events; INFO/DEBUG become Sentry logs; TRACE is ignored.