pub fn init_logging(config: LoggingConfig) -> Result<LoggingGuard>Expand description
Initialize the multi-layer tracing subscriber.
Sets up:
- Operational layer — stdout with
EnvFilter, runtime-reloadable - HFT layer (optional) — non-blocking rolling file appender filtered
to
janus::hfttarget only
Returns a LoggingGuard that must be held alive until shutdown.
§Errors
Returns an error if the HFT log directory cannot be created or if the tracing subscriber fails to initialize.