Documentation ¶
Overview ¶
Package log CopyRight:2020 作者:执着是因为无知 1.默认使用时只输出到控制台 2.通过SetLogToFile()方法,设置AppName(应用名称),NodeName(节点名称),Dir(日志存放目录),Size(日志文件大小限制),Count(日志文件数量)和Level(日志级别),记录日志到文件 3.日志名称为AppName@NodeName.log
Index ¶
- func Close()
- func CloseTrace()
- func Debug(v ...interface{})
- func Debugf(format string, v ...interface{})
- func Error(v ...interface{})
- func Errorf(format string, v ...interface{})
- func Fatal(v ...interface{})
- func Fatalf(format string, v ...interface{})
- func GetAppName() string
- func GetCount() int
- func GetLevel() string
- func GetLogDir() string
- func GetNodeName() string
- func GetSize() int64
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func OpenTrace()
- func SetAppName(appName string)
- func SetCount(count int)
- func SetLevel(level XLogLevel)
- func SetLogDir(dir string)
- func SetLogToFile(appName string, nodeName string, dir string, size int64, count int, ...)
- func SetNodeName(nodeName string)
- func SetSize(size int64)
- func Trace(v ...interface{})
- func Tracef(format string, v ...interface{})
- func Warn(v ...interface{})
- func Warnf(format string, v ...interface{})
- type XLog
- type XLogLevel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.