Documentation
¶
Overview ¶
Package logz provides structured JSON logging with trace ID propagation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New creates a structured JSON logger at the given level. Accepted levels are "debug", "info", "warn", "error" (case-insensitive). Unrecognized levels default to "info".
func TraceIDFrom ¶
TraceIDFrom retrieves the trace ID from the context. Returns an empty string if no trace ID is present.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.