log

package
v0.0.0-...-1b3fcde Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BinLog *_binLog
View Source
var Binlog = logging.NewLogger()
View Source
var CacheLog *_cacheLog

*************************************************************************

View Source
var LogStat *_statLog

**************************************************************************

View Source
var Logger = logging.NewLogger().SetLevel(logging.LEVEL_INFO).SetFormat(logFormat)
View Source
var LoggerError = logging.NewLogger().SetLevel(logging.LEVEL_ERROR).SetFormat(logFormat)
View Source
var STEP = []byte{'|', '|', '|', '|'}
View Source
var SUFGZIP = ".gz"

Functions

func LogInit

func LogInit()

func NewBinLog

func NewBinLog() (blog *_binLog)

func NewCacheLog

func NewCacheLog(dir string, name string) (_Log *_cacheLog, err error)

func NewStatLog

func NewStatLog(dir string, name string) (statlog *_statLog, err error)

func SysLog

func SysLog() (_r string)

*******************************************************************

Types

type LogUtil

type LogUtil struct {
	// contains filtered or unexported fields
}
var BackLog *LogUtil

func NewLogUtil

func NewLogUtil(dir string, name string) (_LogUtil *LogUtil, err error)

func (*LogUtil) ReadAt

func (this *LogUtil) ReadAt(at int64, length int32) (bs []byte, err error)

func (*LogUtil) Write

func (this *LogUtil) Write(bs []byte) (n int64, length int, e error)

Jump to

Keyboard shortcuts

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