Documentation
¶
Overview ¶
Package libLogger provides structured logging utilities for requestCore.
Index ¶
Constants ¶
View Source
const ( // SlogRequestBody is the slog attribute key for request body logging. SlogRequestBody = "slog.request.body" // SlogResponseBody is the slog attribute key for response body logging. SlogResponseBody = "slog.response.body" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONLogger ¶ added in v0.28.1
type JSONLogger struct {
// contains filtered or unexported fields
}
JSONLogger is a logger that writes structured JSON log entries via slog.
type LoggerInterface ¶
type LoggerInterface interface {
GetLogPath() string
GetLogSize() int
GetLogCompress() bool
GetSkipPaths() []string
GetHeaderName() string
}
LoggerInterface defines the interface for accessing logging configuration parameters.
type StdoutLogger ¶
type StdoutLogger struct {
}
StdoutLogger is a logger that writes log output to standard output.
func (StdoutLogger) Config ¶
func (logger StdoutLogger) Config(wsParams libParams.ParamInterface) gin.LoggerConfig
Config returns a gin.LoggerConfig configured for stdout logging with the application's log settings.
Click to show internal directories.
Click to hide internal directories.