log

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *zerolog.Logger

Functions

func FromContext

func FromContext(ctx IContextGetter) *zerolog.Logger

func Init

func Init(level string, debug bool, beauty bool)

Init initializes the zerolog global logger with default config

func SetContextLogger

func SetContextLogger(ctx context.Context, logger *zerolog.Logger) context.Context

func SetGinContextLogger

func SetGinContextLogger(ctx *gin.Context, logger *zerolog.Logger)

Types

type IContextGetter

type IContextGetter interface {
	Value(key interface{}) interface{}
}

Jump to

Keyboard shortcuts

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