vlog2

package
v0.0.0-...-dc66ec4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

func NewLogger

func NewLogger(writer zapcore.WriteSyncer, name string,
	level int8, callSkip int, m map[string]interface{}) (*Logger, error)

func (*Logger) Debug

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

func (*Logger) Error

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

func (*Logger) Fatal

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

func (*Logger) GetLevel

func (l *Logger) GetLevel() int8

func (*Logger) Info

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

func (*Logger) Panic

func (l *Logger) Panic(ctx context.Context, msg string, fields ...zapcore.Field)

func (*Logger) SetLevel

func (l *Logger) SetLevel(level int8)

func (*Logger) Warn

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

Jump to

Keyboard shortcuts

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