Skip to main content

init

Function init 

Source
pub fn init()
Expand description

Initialize the global tracing subscriber.

Reads RUST_LOG for the filter directive (defaulting to info) and BGE_M3_LOG_FORMAT for the format selection: json, text/pretty, or auto-detect via the stdout TTY check. JSON events begin with "bge_module":"server" then "build":"<variant>" as the first two keys; the human formats are unchanged.

Calling this twice is harmless — the second call no-ops via try_init.