Documentation ¶
Index ¶
- type ConsoleLogger
- func (c ConsoleLogger) Debug(format string, a ...interface{})
- func (c ConsoleLogger) Error(format string, a ...interface{})
- func (c ConsoleLogger) Fatal(format string, a ...interface{})
- func (c ConsoleLogger) Info(format string, a ...interface{})
- func (c ConsoleLogger) Trace(format string, a ...interface{})
- func (c ConsoleLogger) Warning(format string, a ...interface{})
- type FileLogger
- func (f *FileLogger) Close()
- func (f *FileLogger) Debug(format string, a ...interface{})
- func (f *FileLogger) Error(format string, a ...interface{})
- func (f *FileLogger) Fatal(format string, a ...interface{})
- func (f *FileLogger) Info(format string, a ...interface{})
- func (f *FileLogger) Trace(format string, a ...interface{})
- func (f *FileLogger) Warning(format string, a ...interface{})
- type LogLevel
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileLogger ¶
type FileLogger struct { Level LogLevel //日志级别 // contains filtered or unexported fields }
文件日志结构体
func NewFileLogger ¶
func NewFileLogger(levelStr, fp, fn string, maxFileSize int64) *FileLogger
构造函数
Click to show internal directories.
Click to hide internal directories.