Documentation
¶
Index ¶
- type Adapter
- func (a *Adapter) Level() levels.Level
- func (a *Adapter) Log(level levels.Level, err error, logFields *fields.Fields, msg string, ...)
- func (a *Adapter) Logger() zerolog.Logger
- func (a *Adapter) SetLevel(level levels.Level)
- func (a *Adapter) SetWriter(w io.Writer)
- func (a *Adapter) Writer() io.Writer
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter is a zerolog adapter implementation
func (*Adapter) Log ¶
func (a *Adapter) Log(level levels.Level, err error, logFields *fields.Fields, msg string, args ...any)
Log logs a message with the given level, error, fields, and message
type Option ¶
type Option func(*options)
Option defines the signature for the options.
func WithTrace ¶ added in v0.2.0
func WithTrace() Option
WithTrace sets the error trace for the logger.
func WithWriter ¶
WithWriter sets the writer for the logger.
Click to show internal directories.
Click to hide internal directories.