log

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: Apache-2.0, Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Audit added in v1.4.2

func Audit() (l *zap.Logger)

func Debug

func Debug(msg string, fields ...zapcore.Field)

func Debugf

func Debugf(template string, args ...interface{})

func Debugw

func Debugw(msg string, keysAndValues ...interface{})

func DumpStack

func DumpStack()

func Error

func Error(msg string, fields ...zapcore.Field)

func Errorf

func Errorf(template string, args ...interface{})

func Errorw

func Errorw(msg string, keysAndValues ...interface{})

func Fatal

func Fatal(msg string, fields ...zapcore.Field)

func Info

func Info(msg string, fields ...zapcore.Field)

func Infof

func Infof(template string, args ...interface{})

func Infow

func Infow(msg string, keysAndValues ...interface{})

func InitAuditLog added in v1.4.2

func InitAuditLog(logPath string) (*zap.Logger, error)

func Initialize

func Initialize(env, logpath string) (*zap.Logger, error)

func SetAuditLog added in v1.4.2

func SetAuditLog(l *zap.Logger)

func SetLog

func SetLog(l *zap.Logger)

func Warn

func Warn(msg string, fields ...zapcore.Field)

func Warnf

func Warnf(template string, args ...interface{})

func Warnw

func Warnw(msg string, keysAndValues ...interface{})

Types

type Logger

type Logger interface {
	Debug(msg string, keyvals ...interface{}) error
	Info(msg string, keyvals ...interface{}) error
	Error(msg string, keyvals ...interface{}) error

	With(keyvals ...interface{}) Logger
}

Logger is a common logger used univeral

Jump to

Keyboard shortcuts

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