logging

package
v1.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelEventSourceType = "eventSourceType"
	LabelEventSourceName = "eventSourceName"
	LabelEventName       = "eventName"
	LabelTriggerName     = "triggerName"
	LabelTriggerType     = "triggerType"
	LabelNamespace       = "namespace"
	LabelEndpoint        = "endpoint"
	LabelPort            = "port"
	LabelHTTPMethod      = "http-method"
	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 SetKlogLevel added in v1.7.5

func SetKlogLevel(level int)

func WithLogger

func WithLogger(ctx context.Context, logger *zap.SugaredLogger) context.Context

WithLogger returns a copy of parent context in which the value associated with logger key is the supplied logger.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL