Documentation ¶
Index ¶
- func Close()
- func Debug(format string, a ...any)
- func Error(format string, a ...any)
- func Fatal(err error)
- func Global(l Logger)
- func Info(format string, a ...any)
- func Trace(format string, a ...any)
- func Warn(format string, a ...any)
- func WriteEscapedJSON(content string, output *bytes.Buffer)
- type Config
- type FieldsContext
- func (f FieldsContext) Debug(format string, a ...any)
- func (f FieldsContext) Error(format string, a ...any)
- func (f FieldsContext) Fatal(err error)
- func (f FieldsContext) Info(format string, a ...any)
- func (f FieldsContext) Trace(format string, a ...any)
- func (f FieldsContext) Warn(format string, a ...any)
- func (f FieldsContext) WithField(name string, value any) Provider
- type GetNow
- type Logger
- func (l Logger) Close()
- func (l Logger) Debug(format string, a ...any)
- func (l Logger) Debugf(format string, a ...any)
- func (l Logger) Error(format string, a ...any)
- func (l Logger) Errorf(format string, a ...any)
- func (l Logger) Fatal(err error)
- func (l Logger) Info(format string, a ...any)
- func (l Logger) Infof(format string, a ...any)
- func (l Logger) Start()
- func (l Logger) Trace(format string, a ...any)
- func (l Logger) Warn(format string, a ...any)
- func (l Logger) Warningf(format string, a ...any)
- func (l Logger) WithField(name string, value any) Provider
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteEscapedJSON ¶ added in v4.22.4
Types ¶
type FieldsContext ¶ added in v4.7.0
type FieldsContext struct {
// contains filtered or unexported fields
}
func (FieldsContext) Debug ¶ added in v4.7.0
func (f FieldsContext) Debug(format string, a ...any)
func (FieldsContext) Error ¶ added in v4.7.0
func (f FieldsContext) Error(format string, a ...any)
func (FieldsContext) Fatal ¶ added in v4.7.0
func (f FieldsContext) Fatal(err error)
func (FieldsContext) Info ¶ added in v4.7.0
func (f FieldsContext) Info(format string, a ...any)
func (FieldsContext) Trace ¶ added in v4.7.0
func (f FieldsContext) Trace(format string, a ...any)
func (FieldsContext) Warn ¶ added in v4.7.0
func (f FieldsContext) Warn(format string, a ...any)
Click to show internal directories.
Click to hide internal directories.