Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SeverityDefault = slog.LevelInfo SeverityInfo = slog.LevelInfo SeverityWarn = slog.LevelWarn SeverityError = slog.LevelError SeverityNotice = slog.LevelInfo )
Log level 定義
Functions ¶
func CORS ¶
func CORS() gin.HandlerFunc
func RequestLogger ¶
func RequestLogger(l *slog.Logger) gin.HandlerFunc
Types ¶
type RequestInfo ¶
type RequestInfo struct {
// contains filtered or unexported fields
}
func (*RequestInfo) LogValue ¶
func (r *RequestInfo) LogValue() slog.Value
Click to show internal directories.
Click to hide internal directories.