zap

package
v0.0.0-...-aac4589 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Adapter = (*adapter)(nil)

Adapter is implementation of logger.Adapter for zap.

Functions

This section is empty.

Types

type Fields

type Fields = fields.Fields

type Wrapper

type Wrapper struct {
	Backend *zap.SugaredLogger
}

Wrapper converts *zap.SugaredLogger to internal.LoggerCompact (which could be easily converted to logger.Logger).

func (Wrapper) Level

func (l Wrapper) Level() logger.Level

Level implements internal.WithLevels.

func (Wrapper) Logf

func (l Wrapper) Logf(level logger.Level, format string, args ...interface{})

Logf implements internal.MinimalLoggerCompact.

func (Wrapper) OriginalLogger

func (l Wrapper) OriginalLogger() interface{}

OriginalLogger implements internal.LoggerExtensions.

func (Wrapper) WithField

func (l Wrapper) WithField(field string, value interface{}) logger.Logger

WithField implements internal.WithFields.

func (Wrapper) WithFields

func (l Wrapper) WithFields(fields Fields) logger.Logger

WithFields implements internal.WithFields.

func (Wrapper) WithLevel

func (l Wrapper) WithLevel(logLevel logger.Level) logger.Logger

WithLevel implements internal.WithLevels.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL