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 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 ¶
Types ¶
type AppHandler ¶
type AppHandler struct {
// contains filtered or unexported fields
}
type SlogMetaHandler ¶
type SlogMetaHandler slog.Handler
func NewSlogMetaHandler ¶
func NewSlogMetaHandler() SlogMetaHandler
Click to show internal directories.
Click to hide internal directories.