Documentation ¶
Index ¶
- Constants
- func Close()
- func Debug(args ...interface{})
- func Debugf(fmt string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(fmt string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(fmt string, args ...interface{})
- func Info(args ...interface{})
- func Infof(fmt string, args ...interface{})
- func SetLayout(layout string)
- func SetLog(filename, level string)
- func Warn(args ...interface{})
- func Warnf(fmt string, args ...interface{})
- type FileWriter
- type Logger
Constants ¶
View Source
const ( DEBUG = iota INFO WARNING ERROR FATAL )
定义日志级别
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileWriter ¶
type FileWriter struct {
// contains filtered or unexported fields
}
FileWriter 实现Write接口
func (*FileWriter) Write ¶
func (w *FileWriter) Write(text string) error
Click to show internal directories.
Click to hide internal directories.