log

package module
v0.0.0-...-6dd5a63 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	B = 1 << (10 * iota)
	KB
	MB
	GB
	TB
	PB
)
View Source
const (
	OUT_STDOUT = 0x1f
	OUT_FILE   = 0x8b
)
View Source
const LoggerMessageKey = "message"
View Source
const ResponseDataKey = "data"
View Source
const TraceContextKey = "trace"
View Source
const UserAgentKey = "User-Agent"

Variables

This section is empty.

Functions

func ChaosLogger

func ChaosLogger()

func Debug

func Debug(msg ...interface{})

func Debug2

func Debug2(ctx iris.Context, msg ...interface{})

func Debugf

func Debugf(format string, msg ...interface{})

func Debugf2

func Debugf2(ctx iris.Context, format string, msg ...interface{})

func Error

func Error(msg ...interface{})

func Error2

func Error2(ctx iris.Context, msg ...interface{})

func Errorf

func Errorf(format string, msg ...interface{})

func Errorf2

func Errorf2(ctx iris.Context, format string, msg ...interface{})

func Fatal

func Fatal(msg ...interface{})

func Fatal2

func Fatal2(ctx iris.Context, msg ...interface{})

func Fatalf

func Fatalf(format string, msg ...interface{})

func Fatalf2

func Fatalf2(ctx iris.Context, format string, msg ...interface{})

func Info

func Info(msg ...interface{})

func Info2

func Info2(ctx iris.Context, msg ...interface{})

func Infof

func Infof(format string, msg ...interface{})

func Infof2

func Infof2(ctx iris.Context, format string, msg ...interface{})

func Infof3

func Infof3(format string, msg ...interface{})

func NewIrisLogger

func NewIrisLogger(config *logger.Config) iris.Handler

func SetTraceMiddleware

func SetTraceMiddleware(ctx iris.Context)

func Stack

func Stack(msg ...interface{})

func Stackf

func Stackf(format string, msg ...interface{})

func Warn

func Warn(msg ...interface{})

func Warn2

func Warn2(ctx iris.Context, msg ...interface{})

func Warnf

func Warnf(format string, msg ...interface{})

func Warnf2

func Warnf2(ctx iris.Context, format string, msg ...interface{})

Types

type Hook

type Hook interface {
	Fire(writer *bufio.Writer)
	Level(level)
}

type Logger

type Logger struct {
	Path     string
	FileName string

	FileMaxSize int
	FileBufSize int

	Bucket chan *bytebufferpool.ByteBuffer

	Persist int

	ContextTraceKey string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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