Documentation ¶
Index ¶
- Constants
- func LevelToString(level int) string
- func StringToLevel(level string) int
- type Logger
- func (l *Logger) Close() (err error)
- func (l *Logger) Console() bool
- func (l *Logger) Debug(format string, args ...interface{}) error
- func (l *Logger) Error(format string, args ...interface{}) error
- func (l *Logger) Fatal(format string, args ...interface{}) error
- func (l *Logger) Info(format string, args ...interface{}) error
- func (l *Logger) Log(level int, format string, args ...interface{}) (err error)
- func (l *Logger) Notice(format string, args ...interface{}) error
- func (l *Logger) SetLevel(level int)
- func (l *Logger) Syslog() bool
- func (l *Logger) Warn(format string, args ...interface{}) error
Constants ¶
View Source
const ( SYSLOG = 1 << iota CONSOLE )
View Source
const ( DEBUG = iota INFO NOTICE WARN ERROR FATAL )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Simple logger instance.
Click to show internal directories.
Click to hide internal directories.