Documentation ¶
Index ¶
- Constants
- func Add(l Logger)
- func Debug(data ...interface{})
- func Debugw(message string, data ...interface{})
- func Error(data ...interface{})
- func Errorw(message string, data ...interface{})
- func Finish() error
- func Info(data ...interface{})
- func Infow(message string, data ...interface{})
- func Init() error
- func Logw(level int, message string, data ...interface{})
- type Logger
Constants ¶
View Source
const ( LEVEL_INFO = 0 LEVEL_ERROR = 1 LEVEL_DEBUG = 2 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger interface { Init() error Finish() error Log(level int, data ...interface{}) Logw(level int, message string, data ...interface{}) Info(data ...interface{}) Infow(message string, data ...interface{}) Error(data ...interface{}) Errorw(message string, data ...interface{}) Debug(data ...interface{}) Debugw(message string, data ...interface{}) }
Click to show internal directories.
Click to hide internal directories.