Documentation
¶
Index ¶
Constants ¶
View Source
const ( InfoLevel = "info" DebugLevel = "debug" ErrorLevel = "error" )
Logger constants
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
func FromContext(ctx context.Context) *zap.SugaredLogger
FromContext returns the logger in the context.
func WithAgentLabels ¶
func WithAgentLabels(logger *zap.SugaredLogger) *zap.SugaredLogger
WithAgentLabels binds NAMESPACE, AGENTSET_NAME, and AGENTDEPLOY_NAME from the pod environment as persistent log fields.
func WithLogger ¶
WithLogger returns a copy of parent context in which the value associated with logger key is the supplied logger.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.