Skip to main content

init

Function init 

Source
pub fn init()
Expand description

Installs the global file logger at the default level (warn).

Called once at process start, before any subcommand runs. Safe to call more than once (subsequent calls are ignored) so tests that exercise main don’t double-install. The level is later refined by apply once the user config is loaded. Terminal-restore-on-panic is a presentation concern, so the CLI binary installs that hook separately (the TUI setup also self-installs it).