Documentation ¶
Index ¶
- Constants
- type Logger
- func (self *Logger) Critical(v ...interface{})
- func (self *Logger) Criticalf(format string, v ...interface{})
- func (self *Logger) Debug(v ...interface{})
- func (self *Logger) Debugf(format string, v ...interface{})
- func (self *Logger) Error(v ...interface{})
- func (self *Logger) Errorf(format string, v ...interface{})
- func (self *Logger) Info(v ...interface{})
- func (self *Logger) Infof(format string, v ...interface{})
- func (self *Logger) SetLevel(level int)
- func (self *Logger) SetOutput(w io.Writer)
- func (self *Logger) Warn(v ...interface{})
- func (self *Logger) Warnf(format string, v ...interface{})
Constants ¶
View Source
const ( CRITICAL = 50 ERROR = 40 WARN = 30 INFO = 20 DEBUG = 10 )
View Source
const ( CALLDEPTH = 3 FLAGS = log.Lshortfile | log.LstdFlags | log.Lmicroseconds )
Set the calldepth so we get the right file when logging
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.