Documentation ¶
Index ¶
- Constants
- func Debug(s string, v ...interface{})
- func Error(s string, v ...interface{})
- func GetOutput() io.Writer
- func Info(s string, v ...interface{})
- func Notice(s string, v ...interface{})
- func Panic(s string, v ...interface{})
- func SetOutput(w io.Writer)
- func SetPrefix(prefix string)
- func Warning(s string, v ...interface{})
- type FileHandler
- type Logger
- func (l *Logger) Debug(s string, v ...interface{})
- func (l *Logger) Error(s string, v ...interface{})
- func (l *Logger) GetOutput() io.Writer
- func (l *Logger) Info(s string, v ...interface{})
- func (l *Logger) Notice(s string, v ...interface{})
- func (l *Logger) Output(level int, s string)
- func (l *Logger) Panic(s string, v ...interface{})
- func (l *Logger) SetLevel(level int)
- func (l *Logger) SetOutput(w io.Writer)
- func (l *Logger) SetPrefix(prefix string)
- func (l *Logger) Warning(s string, v ...interface{})
Constants ¶
View Source
const ( ChannelSingle = iota ChannelDaily )
View Source
const ( LevelDebug = iota LevelInfo LevelNotice LevelWarning LevelError LevelPanic )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileHandler ¶
type FileHandler struct {
// contains filtered or unexported fields
}
func NewFileHandler ¶
func NewFileHandler(path string, channel int) *FileHandler
func (*FileHandler) Close ¶
func (f *FileHandler) Close() error
Click to show internal directories.
Click to hide internal directories.