logger

package
v0.0.0-...-bfb5c6f Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2018 License: Apache-2.0 Imports: 7 Imported by: 34

Documentation

Index

Constants

View Source
const (
	ROLLINGDAILY
	ROLLINGFILE
)
View Source
const DATEFORMAT = "2006-01-02"

Variables

View Source
var RollingFile bool = false

Functions

func Debug

func Debug(v ...interface{})

func Error

func Error(v ...interface{})

func Fatal

func Fatal(v ...interface{})

func Info

func Info(v ...interface{})

func SetConsole

func SetConsole(isConsole bool)

func SetLevel

func SetLevel(_level LEVEL)

func SetPrefix

func SetPrefix(title string)

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{})

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