log

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NormalLogger = jlog.GetLogger("normal")
	AccessLogger = jlog.GetLogger("access")
	DetailLogger = jlog.GetLogger("detail")
)

Functions

func AccessLog

func AccessLog(content string, args ...interface{})

func Debug

func Debug(content string, args ...interface{})

func DetailDebug

func DetailDebug(content interface{}, args ...interface{})

func DetailError

func DetailError(content interface{}, args ...interface{})

func Error

func Error(content string, args ...interface{})

func Fatal

func Fatal(content string, args ...interface{})

func Info

func Info(content string, args ...interface{})

func Warn

func Warn(content string, args ...interface{})

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger() *Logger

func (*Logger) Debug

func (l *Logger) Debug(content string, args ...interface{})

func (*Logger) DetailDebug

func (l *Logger) DetailDebug(content string, args ...interface{})

func (*Logger) DetailError

func (l *Logger) DetailError(content string, args ...interface{})

func (*Logger) Error

func (l *Logger) Error(content string, args ...interface{})

func (*Logger) Fatal

func (l *Logger) Fatal(content string, args ...interface{})

func (*Logger) GetRequestID

func (l *Logger) GetRequestID() string

func (*Logger) Info

func (l *Logger) Info(content string, args ...interface{})

func (*Logger) SetRequestID

func (l *Logger) SetRequestID(requestID string) *Logger

func (*Logger) Warn

func (l *Logger) Warn(content string, args ...interface{})

Jump to

Keyboard shortcuts

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