log

package
v0.0.0-...-df093e9 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: Apache-2.0 Imports: 3 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 {
	// contains filtered or unexported fields
}

Logger ...

func NewLogger

func NewLogger(isDebug bool) Logger

NewLogger creates a new Logger

func NewLoggerWith

func NewLoggerWith(logger Logger, keyvals ...interface{}) Logger

NewLoggerWith return a new Logger with additional keyvals

func (*Logger) LogDebug

func (l *Logger) LogDebug(msg string, keyvals ...interface{})

LogDebug logs debug messages

func (*Logger) LogError

func (l *Logger) LogError(msg string, err error, keyvals ...interface{})

LogError logs error messages

func (*Logger) LogFatal

func (l *Logger) LogFatal(msg string, keyvals ...interface{})

LogFatal logs fatal messages and exits

func (*Logger) LogInfo

func (l *Logger) LogInfo(msg string, keyvals ...interface{})

LogInfo logs info messages

func (*Logger) LogWarn

func (l *Logger) LogWarn(msg string, keyvals ...interface{})

LogWarn logs warning messages

Jump to

Keyboard shortcuts

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