Function init
Source pub fn init(config: LogConfig) -> LogGuard
Expand description
Initialize the tracing subscriber with file + optional stderr output.
Returns a LogGuard that must be held until shutdown. Dropping
the guard flushes all pending writes to the log file.
ยงPanics
Panics if the log directory cannot be created.