Structs§
- Compat
Logger - Inner
Logger - LogDirective
- LogLine
Cached State - Logger
- Metadata
- Metadata about a log message.
- Rfc3339
Time
Enums§
Constants§
Statics§
Functions§
- ansi_
palette - ANSI palette used by every
log_context!/log_*_context!macro in the proxy stack. Returns a 5-tuple(open, reset, grey, gray, white)where: - is_
logger_ colored - Returns
truewhen the thread-localLoggeris configured to emit colored output. Safe to call from inside anerror!/info!/… argument list — the flag mirrorsLogger::is_colored(i.e.InnerLogger::colored) into a dedicatedCellatLogger::inittime so we never re-borrow the main logger cell (which is already held mutably while the outer log macro is formatting its arguments). The mirror is the single source of truth for hot-path callers;Logger::is_coloredis the single source of truth for the rest of the API. They go through the sameInnerLogger::coloredfield, so they cannot diverge by construction. - now
- yields (Rfc3339Time, unix_epoch)
- parse_
logging_ spec - setup_
default_ logging - start the logger with all logs and access logs on stdout
- setup_
logging - start the logger, after:
- setup_
logging_ with_ config - start the logger from config (takes RUST_LOG into account)
- target_
to_ backend