logger

package
v0.0.0-...-6f43059 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelTrace  = slog.Level(-8)
	LevelDebug  = slog.LevelDebug
	LevelInfo   = slog.LevelInfo
	LevelNotice = slog.Level(2)
	LevelWarn   = slog.LevelWarn
	LevelError  = slog.LevelError
)
View Source
const (
	HeaderXRHRequestID = "X-Rh-Insights-Request-Id"
)

Variables

This section is empty.

Functions

func InitLogger

func InitLogger(cfg *config.Config)

func LogBuildInfo

func LogBuildInfo(msg string)

func MiddlewareLogValues

func MiddlewareLogValues(c echo.Context, v middleware.RequestLoggerValues) error

This requires the following values to be set in middleware.RequestLoggerWithConfig:

LogError: true, LogMethod: true, LogStatus: true, LogURI: true,

func NewGormLog

func NewGormLog(ignoreRecordNotFound bool) logger.Interface

Types

type AppHandler

type AppHandler struct {
	// contains filtered or unexported fields
}

type Clonable

type Clonable interface {
	Clone() interface{}
}

type SlogMetaHandler

type SlogMetaHandler interface {
	slog.Handler
	Add(handler slog.Handler)
}

type SlogMetaHandler slog.Handler

func NewSlogMetaHandler

func NewSlogMetaHandler() SlogMetaHandler

Jump to

Keyboard shortcuts

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