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 LevelSilent = slog.Level(12) )
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 ¶
NewGormLog use slog to inject the gorm logs on it sl is the slog to use to send the messages. ignoreRecordNotFound when it is true, no trace is logged when a record is not found. Return a logger.Interface initialized
Types ¶
type AppHandler ¶
type AppHandler struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.