Documentation
¶
Overview ¶
Package log provides an implementation of the telemetry.Logger interface that allows defining named loggers
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFlattened ¶ added in v0.2.3
NewFlattened creates a new flattened logger for structured data.
func NewUnstructured ¶ added in v0.2.0
NewUnstructured creates a new unstructured logger. NOTE: This logger is not to be used for new development as it goes against the contract of the telemetry.Logger interface. It expects Printf style data from calls to Error, Info, and Debug. It has been added for converting legacy code to use this new logging subsystem.
Example: log.Debug("values should be between %d and %d.", 12, 24)
If you want to have a normal style log output but provide proper structured data, please use the flattened logger by instantiating NewFlattened().
Types ¶
This section is empty.