pub fn InitEager()Expand description
Force the file sink to initialize before any dev_log! has run.
WriteToFile is otherwise lazy - the log file is only opened the first
time a tagged dev_log! call fires. When Mountain panics (or the
webview traps the user with an early error) before the first enabled
tag emits, the session log directory ends up with an empty shell and
the post-mortem evidence is lost.
Call this once at the top of Binary::Main::Fn() - as early as the
binary can reach - so the header line + Record=1 opt-in
are honoured even when nothing else ever logs. Harmless to call
multiple times; the OnceLock inside InitFileSink gates it.