logging

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package logging uses the logr.Logger interface to integrate with different logging implementation for structured logging

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithLogger

func ContextWithLogger(ctx context.Context, l Logger) context.Context

ContextWithLogger wraps the logr NewContext function

Types

type Logger

type Logger struct {
	logr.Logger
}

func LoggerFromContext

func LoggerFromContext(ctx context.Context) Logger

LoggerFromContext wraps the LoggerFromContext or creates a Zap production logger

func NewStandardLogger

func NewStandardLogger() Logger

NewStandardLogger wraps the creation of a Golang standard logger

Jump to

Keyboard shortcuts

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