logger

package
v0.2.6-rc Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

pkg/logger/context.go

Index

Constants

View Source
const (
	RequestIDKey contextKey = "request_id"
	CRDKey       contextKey = "crd"
	ResourceKey  contextKey = "resource"
)

Variables

This section is empty.

Functions

func Debug

func Debug() *zerolog.Event

func Error

func Error() *zerolog.Event

func Fatal

func Fatal() *zerolog.Event

func FromContext

func FromContext(ctx context.Context) *zerolog.Logger

func Info

func Info() *zerolog.Event

func Init

func Init(level string)

func Panic

func Panic() *zerolog.Event

func Warn

func Warn() *zerolog.Event

func WithCRD

func WithCRD(ctx context.Context, crd string) context.Context

func WithRequestID

func WithRequestID(ctx context.Context) context.Context

func WithResource

func WithResource(ctx context.Context, key string) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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