logging

package
v0.0.0-...-5157df0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelDebug int
	LevelInfo
	LevelWarn
	LevelError
	LevelFatal

	LevelStringDebug = "DEBUG"
	LevelStringInfo  = "INFO"
	LevelStringWarn  = "WARN"
	LevelStringError = "ERROR"
	LevelStringFatal = "FATAL"
)
View Source
const (
	LogDate logFlag
	LogTime
	LogMicroTime
	LogLongFile
	LogShortFile
	LogStd = LogDate | LogTime | LogShortFile
)
View Source
const (
	LogChanSize      = 1024000
	DefaultCalldepth = 2
)
View Source
const (
	AdapterConsole = "console"
	AdapterFile    = "file"
	AdapterNet     = "net"
)

Variables

This section is empty.

Functions

func AddAdapter

func AddAdapter(name string, conf string) error

func CheckLevel

func CheckLevel(lv string) bool

func Debug

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

func Error

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

func Fatal

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

func Flush

func Flush()

func Info

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

func Output

func Output(calldepth int, format string, args ...interface{})

func RemoveAdapter

func RemoveAdapter(name string) error

func SetFlags

func SetFlags(f logFlag)

func SetLevel

func SetLevel(lv string) error

func Warn

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

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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