Versions in this module Expand all Collapse all v1 v1.1.0 Apr 21, 2026 v1.0.0 Apr 20, 2026 Changes in this version + var DefaultWriter io.Writer = os.Stdout + func DisableConsoleColor() + func ForceConsoleColor() + func Logger() app.HandlerFunc + func LoggerWithConfig(conf LoggerConfig) app.HandlerFunc + func LoggerWithFormatter(f LogFormatter) app.HandlerFunc + func LoggerWithWriter(out io.Writer, notLogged ...string) app.HandlerFunc + type LogFormatter func(w io.Writer, params *LogFormatterParams) + type LogFormatterParams struct + Host []byte + Keys map[string]any + Latency time.Duration + Method []byte + Path []byte + Query []byte + Request *protocol.Request + StatusCode int + TimeStamp time.Time + func (p *LogFormatterParams) AppendErrorMessage(dst []byte) []byte + func (p *LogFormatterParams) AppendRequestURI(dst []byte) []byte + func (p *LogFormatterParams) BodySize() int + func (p *LogFormatterParams) ClientIP() string + func (p *LogFormatterParams) ErrorMessage() string + func (p *LogFormatterParams) IsOutputColor() bool + func (p *LogFormatterParams) MethodColor() string + func (p *LogFormatterParams) ResetColor() string + func (p *LogFormatterParams) StatusCodeColor() string + type LoggerConfig struct + Formatter LogFormatter + Output io.Writer + SkipPaths []string