Documentation ¶
Index ¶
Constants ¶
View Source
const ( LabelEventSourceType = "eventSourceType" LabelEventSourceName = "eventSourceName" LabelEventName = "eventName" LabelNamespace = "namespace" LabelPhase = "phase" LabelInstanceID = "instance-id" LabelEndpoint = "endpoint" LabelPort = "port" LabelHTTPMethod = "http-method" LabelVersion = "version" LabelTime = "time" TimestampFormat = "2006-01-02 15:04:05" )
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 NewArgoEventsLogger ¶
func NewArgoEventsLogger() *zap.SugaredLogger
NewArgoEventsLogger returns a new ArgoEventsLogger
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.