logging

package
v2.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupZerolog

func SetupZerolog(g gin.IRoutes)

SetupZerolog assumes that a zerolog logger is attached to the application context <g.Request.Context()> It reconfigures the gin router to log using this logger For this a request id gets injected into the current request Logger will be set to Error level per default, use SetupZerologWithLevel to change this

func SetupZerologWithLevel added in v2.3.12

func SetupZerologWithLevel(g gin.IRoutes, lvl zerolog.Level)

SetupZerologWithLevel assumes that a zerolog logger is attached to the application context <g.Request.Context()> It reconfigures the gin router to log using this logger For this a request id gets injected into the current request

Types

This section is empty.

Jump to

Keyboard shortcuts

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