Expand description
Process-wide logging setup shared by every binary.
Modules§
- pools
- Database pool series: the connection gauges and the acquire-failure counter.
- recorder
- Prometheus recorder, series names and the
/metricslistener shared by the binaries.
Functions§
- init_
logging - Initialises logging on stderr; stdout is reserved for the binaries’ protocols. Colour codes go only to a terminal, so collected pod logs stay plain text.
- init_
logging_ to - Initialises logging to
writer, the filter coming fromflag,RUST_LOGordefault. - init_
with_ writer - Installs the global subscriber, writing to
writerwith colour codes only whenansi, and bridgeslogrecords into it. - resolve_
filter - Picks the filter: an explicit flag wins, then a valid
RUST_LOG, then the default.