Documentation ¶
Index ¶
- Variables
- func Debug(format string, v ...interface{})
- func Debugln(args ...interface{})
- func Error(format string, v ...interface{})
- func Errorln(args ...interface{})
- func Info(format string, v ...interface{})
- func Infoln(args ...interface{})
- func InitLogging(inputfilename string, level int)
- func PathExists(path string) bool
- type Logger
- func (logobj *Logger) Close() error
- func (logobj *Logger) Debug(format string, v ...interface{})
- func (logobj *Logger) Debugln(args ...interface{})
- func (logobj *Logger) Error(format string, v ...interface{})
- func (logobj *Logger) Errorln(args ...interface{})
- func (logobj *Logger) Info(format string, v ...interface{})
- func (logobj *Logger) Infoln(args ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var DEBUG = 0
View Source
var ERROR = 5
View Source
var INFO = 3
View Source
var LOGDir = "logs/"
Functions ¶
func InitLogging ¶
InitLogging 初始化默认的日志对象,初始化后,就能使用Error,Info函数记录日志
func PathExists ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.