zap

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	CallerSkip int
}

func (*Builder) Build

func (b *Builder) Build() logger.Logger

func (*Builder) Schema

func (b *Builder) Schema() string

type Logger

type Logger struct {
	*zap.Logger
	// contains filtered or unexported fields
}

func (*Logger) Debug

func (l *Logger) Debug(ctx context.Context, msg string, fields ...zap.Field)

func (*Logger) Debugf

func (l *Logger) Debugf(ctx context.Context, msg string, args ...interface{})

func (*Logger) Error

func (l *Logger) Error(ctx context.Context, msg string, fields ...zap.Field)

func (*Logger) Errorf

func (l *Logger) Errorf(ctx context.Context, msg string, args ...interface{})

func (*Logger) Fatal

func (l *Logger) Fatal(ctx context.Context, msg string, fields ...zap.Field)

func (*Logger) Fatalf

func (l *Logger) Fatalf(ctx context.Context, msg string, args ...interface{})

func (*Logger) GetLevel

func (l *Logger) GetLevel(output ...string) zapcore.Level

func (*Logger) Info

func (l *Logger) Info(ctx context.Context, msg string, fields ...zap.Field)

func (*Logger) Infof

func (l *Logger) Infof(ctx context.Context, msg string, args ...interface{})

func (*Logger) SetLevel

func (l *Logger) SetLevel(level zapcore.Level, output ...string)

func (*Logger) Sync

func (l *Logger) Sync() error

func (*Logger) Warn

func (l *Logger) Warn(ctx context.Context, msg string, fields ...zap.Field)

func (*Logger) Warnf

func (l *Logger) Warnf(ctx context.Context, msg string, args ...interface{})

func (*Logger) WithFields

func (l *Logger) WithFields(fields ...zapcore.Field) logger.Logger

Jump to

Keyboard shortcuts

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