log

package
v0.0.0-...-06a2622 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: LGPL-3.0 Imports: 6 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 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 SetRollingDaily

func SetRollingDaily(fileDir, fileName string)

func SetRollingFile

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

func SetSourceRoot

func SetSourceRoot(src string)

func Trace

func Trace(v ...interface{})

func Warn

func Warn(v ...interface{})

Types

type LEVEL

type LEVEL int32
const (
	ALL LEVEL = iota
	TRACE
	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