logger

package
v0.0.0-...-9be3a58 Latest Latest
Warning

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

Go to latest
Published: May 22, 2017 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DATEFORMAT = "2006-01-02"

Variables

View Source
var RollingFile bool = false

Functions

func Debug

func Debug(v ...interface{})

func DebugSub

func DebugSub(sub string, v ...interface{})

func DebugSubf

func DebugSubf(sub, format string, v ...interface{})

func Debugf

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

func Error

func Error(v ...interface{})

func ErrorSub

func ErrorSub(sub string, v ...interface{})

func ErrorSubf

func ErrorSubf(sub, format string, v ...interface{})

func Errorf

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

func Fatal

func Fatal(v ...interface{})

func FatalSub

func FatalSub(sub string, v ...interface{})

func FatalSubf

func FatalSubf(sub, format string, v ...interface{})

func Fatalf

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

func Info

func Info(v ...interface{})

func InfoSub

func InfoSub(sub string, v ...interface{})

func InfoSubf

func InfoSubf(sub, format string, v ...interface{})

func Infof

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

func SetConsole

func SetConsole(isConsole bool)

func SetLevel

func SetLevel(_level LEVEL)

func SetRollingDaily

func SetRollingDaily(fileDir, fileName string)

func SetRollingFile

func SetRollingFile(fileDir, fileName string, maxNumber int32, maxSize int64, _unit UNIT)

func Warn

func Warn(v ...interface{})

func WarnSub

func WarnSub(sub string, v ...interface{})

func WarnSubf

func WarnSubf(sub, format string, v ...interface{})

func Warnf

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

Types

type LEVEL

type LEVEL int32
const (
	ALL LEVEL = iota
	DEBUG
	INFO
	WARN
	ERROR
	FATAL
	OFF
)

type UNIT

type UNIT int64
const (
	KB UNIT = 1 << (iota * 10)
	MB
	GB
	TB
)

Jump to

Keyboard shortcuts

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