Documentation ¶
Overview ¶
Package logging supplies common constants to ensure consistent use of structured logs.
Index ¶
Constants ¶
View Source
const ( // ReconcilerKey is used to identify a reconciler. ReconcilerKey = "reconciler" // QueueKeyKey is used to expose the workqueue key being processed. QueueKeyKey = "key" // WorkspaceKey is used to specify a workspace when a log is related to an object. WorkspaceKey = "workspace" // NamespaceKey is used to specify a namespace when a log is related to an object. NamespaceKey = "namespace" // NameKey is used to specify a name when a log is related to an object. NameKey = "name" )
Variables ¶
This section is empty.
Functions ¶
func WithObject ¶
WithObject adds object identifiers to the logger.
func WithQueueKey ¶
WithQueueKey adds the queue key to the logger.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.