Skip to content

miniproto.observability.StructuredFormatter.format

miniproto.observability.StructuredFormatter.format

Section titled “miniproto.observability.StructuredFormatter.format”
format(record: logging.LogRecord) -> str

Format a record while redacting event fields and exception text.

Parameters:

  • record (LogRecord) – Standard-library log record.

Returns:

  • str – Redacted text or compact JSON according to the configured format.