Documentation
¶
Overview ¶
Package logging configures structured logging and masks personal data in log attributes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextHandler ¶
ContextHandler wraps h so each record logged with a context carries the attributes added to it with WithAttrs, and the Lambda request ID (request_id) when the context is a Lambda invocation context.
func MaskEmail ¶
MaskEmail hides all but the first character of the local part, for example "u***@example.com".
func NewJSONHandler ¶
NewJSONHandler returns a JSON handler wrapped with ContextHandler.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.