Documentation ¶
Index ¶
- func Middleware(config Config) echo.MiddlewareFunc
- type Config
- type Context
- type Logger
- func (l Logger) Clone(setters ...Setter) *Logger
- func (l Logger) Debug(i ...interface{})
- func (l Logger) Debugf(format string, i ...interface{})
- func (l Logger) Debugj(j log.JSON)
- func (l Logger) Error(i ...interface{})
- func (l Logger) Errorf(format string, i ...interface{})
- func (l Logger) Errorj(j log.JSON)
- func (l Logger) Fatal(i ...interface{})
- func (l Logger) Fatalf(format string, i ...interface{})
- func (l Logger) Fatalj(j log.JSON)
- func (l Logger) Info(i ...interface{})
- func (l Logger) Infof(format string, i ...interface{})
- func (l Logger) Infoj(j log.JSON)
- func (l Logger) Level() log.Lvl
- func (l Logger) Output() io.Writer
- func (l Logger) Panic(i ...interface{})
- func (l Logger) Panicf(format string, i ...interface{})
- func (l Logger) Panicj(j log.JSON)
- func (l Logger) Prefix() string
- func (l Logger) Print(i ...interface{})
- func (l Logger) Printf(format string, i ...interface{})
- func (l Logger) Printj(j log.JSON)
- func (l Logger) SetHeader(h string)
- func (l *Logger) SetLevel(level log.Lvl)
- func (l *Logger) SetOutput(newOut io.Writer)
- func (l *Logger) SetPrefix(newPrefix string)
- func (l Logger) Warn(i ...interface{})
- func (l Logger) Warnf(format string, i ...interface{})
- func (l Logger) Warnj(j log.JSON)
- func (l *Logger) WithContext(ctx context.Context) context.Context
- type Options
- type Setter
- func WithCaller() Setter
- func WithCallerWithSkipFrameCount(skipFrameCount int) Setter
- func WithField(name string, value interface{}) Setter
- func WithFields(fields map[string]interface{}) Setter
- func WithHook(hook zerolog.Hook) Setter
- func WithHookFunc(hook zerolog.HookFunc) Setter
- func WithLevel(level log.Lvl) Setter
- func WithPrefix(prefix string) Setter
- func WithTimestamp() Setter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
func Middleware(config Config) echo.MiddlewareFunc
Types ¶
type Config ¶
type Config struct { Logger *Logger Skipper middleware.Skipper }
type Context ¶
type Context struct { echo.Context // contains filtered or unexported fields }
func NewContext ¶
type Logger ¶
type Logger struct { echo.Logger // contains filtered or unexported fields }
Logger is a wrapper around `zerolog.Logger` that provides an implementation of `echo.Logger` interface
type Setter ¶
type Setter func(opts *Options)
func WithCaller ¶
func WithCaller() Setter
func WithFields ¶
func WithHookFunc ¶
func WithPrefix ¶
func WithTimestamp ¶
func WithTimestamp() Setter
Click to show internal directories.
Click to hide internal directories.