logging

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCustomEntry added in v0.9.1

func AddCustomEntry(ctx *gin.Context, key string, value any)

func AddLogEvent added in v0.9.0

func AddLogEvent(ctx *gin.Context, key string, value any)

AddLogEvent Deprecated: please use `AddCustomEntry` instead

func GinMiddleware

func GinMiddleware() gin.HandlerFunc

GinMiddleware is a zerolog logging middleware for Gin. It is inspired by the original logging routine from the Gin project.

func SetupLogging added in v0.3.2

func SetupLogging(path string, level LogLevel)

SetupLogging is a common setup for different CNC HTTP services.

Types

type LogLevel added in v0.3.2

type LogLevel string

func (LogLevel) IsDebugMode added in v0.3.2

func (ll LogLevel) IsDebugMode() bool

func (LogLevel) IsValid added in v0.3.2

func (ll LogLevel) IsValid() bool

Jump to

Keyboard shortcuts

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