logger

package
v0.0.0-...-1a88b7f Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 21 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
)

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