Documentation ¶
Index ¶
- func AddFilter(name string, level Level, writer LogWriter)
- func Close()
- func Critical(arg0 interface{}, args ...interface{}) error
- func Debug(arg0 interface{}, args ...interface{})
- func Error(arg0 interface{}, args ...interface{}) error
- func Fine(arg0 interface{}, args ...interface{})
- func Finest(arg0 interface{}, args ...interface{})
- func Info(arg0 interface{}, args ...interface{})
- func Logf(level Level, format string, args ...interface{})
- func Trace(arg0 interface{}, args ...interface{})
- func Warn(arg0 interface{}, args ...interface{}) error
- type Level
- type LogWriter
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogWriter ¶
func NewConsoleLogWriter ¶
func NewConsoleLogWriter() LogWriter
func NewFileLogWriter ¶
func NewLogWriter ¶
type Logger ¶
type Logger interface { AddFilter(name string, level Level, writer LogWriter) Finest(arg0 interface{}, args ...interface{}) Fine(arg0 interface{}, args ...interface{}) Debug(arg0 interface{}, args ...interface{}) Trace(arg0 interface{}, args ...interface{}) Info(arg0 interface{}, args ...interface{}) Warn(arg0 interface{}, args ...interface{}) error Error(arg0 interface{}, args ...interface{}) error Critical(arg0 interface{}, args ...interface{}) error Logf(level Level, format string, args ...interface{}) Close() }
var Global Logger
Click to show internal directories.
Click to hide internal directories.