libLogger

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SlogRequestBody  = "slog.request.body"
	SlogResponseBody = "slog.response.body"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonLogger

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

func (JsonLogger) Write

func (j JsonLogger) Write(p []byte) (n int, err error)

type LoggerInterface

type LoggerInterface interface {
	GetLogPath() string
	GetLogSize() int
	GetLogCompress() bool
	GetSkipPaths() []string
	GetHeaderName() string
}

type StdoutLogger

type StdoutLogger struct {
}

func (StdoutLogger) Config

func (logger StdoutLogger) Config(wsParams libParams.ParamInterface) gin.LoggerConfig

func (StdoutLogger) Write

func (logger StdoutLogger) Write(p []byte) (n int, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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