crabka-logfmt
Structured-JSON tracing log formatter shared across Crabka services (broker,
gRPC gateway, operator, schema-registry).
It installs a stdout fmt layer whose events are emitted as one JSON object per
line, shaped for Google Cloud Logging (GKE):
severityis mapped from thetracinglevel (WARN→WARNING,TRACE→DEBUG) so Cloud Logging sets the entry'sLogSeverity.messageand all event fields are flattened to the top level so the message becomes the entry summary and fields stay queryable.- No ANSI colour codes — unlike the default
tracing_subscriberfmtlayer, which colourises even when stdout is not a terminal.
Usage
use ;
let filter = try_from_default_env.unwrap_or_else;
registry
.with
.init;