Documentation
¶
Index ¶
- Variables
- func Close()
- func GenID() string
- type Event
- type Field
- func (self Field) Debug(args ...interface{})
- func (self Field) Debugf(format string, args ...interface{})
- func (self Field) Debugln(args ...interface{})
- func (self Field) Error(args ...interface{})
- func (self Field) Errorf(format string, args ...interface{})
- func (self Field) Errorln(args ...interface{})
- func (self Field) G(k string) (interface{}, bool)
- func (self Field) Info(args ...interface{})
- func (self Field) Infof(format string, args ...interface{})
- func (self Field) Infoln(args ...interface{})
- func (self Field) Panic(args ...interface{})
- func (self Field) Panicf(format string, args ...interface{})
- func (self Field) Panicln(args ...interface{})
- func (self Field) S(k string, v interface{}) Field
- func (self Field) String() string
- func (self Field) Warn(args ...interface{})
- func (self Field) Warnf(format string, args ...interface{})
- func (self Field) Warnln(args ...interface{})
- type FuncCall
- type Level
- type Listener
- type Logger
- func (logger *Logger) AddListener(l ...Listener)
- func (logger *Logger) Close()
- func (logger *Logger) Debug(args ...interface{})
- func (logger *Logger) Debugf(format string, args ...interface{})
- func (logger *Logger) Debugln(args ...interface{})
- func (logger *Logger) Error(args ...interface{})
- func (logger *Logger) Errorf(format string, args ...interface{})
- func (logger *Logger) Errorln(args ...interface{})
- func (logger *Logger) Event(e Event)
- func (logger *Logger) Go(f interface{}, params ...interface{})
- func (logger *Logger) Info(args ...interface{})
- func (logger *Logger) Infof(format string, args ...interface{})
- func (logger *Logger) Infoln(args ...interface{})
- func (logger *Logger) NewField() Field
- func (logger *Logger) Option() *Option
- func (logger *Logger) Panic(args ...interface{})
- func (logger *Logger) Panicf(format string, args ...interface{})
- func (logger *Logger) Panicln(args ...interface{})
- func (logger *Logger) Pause(b bool)
- func (logger *Logger) S(k string, v interface{}) Field
- func (logger *Logger) UpdateListener(l ...Listener)
- func (logger *Logger) Warn(args ...interface{})
- func (logger *Logger) Warnf(format string, args ...interface{})
- func (logger *Logger) Warnln(args ...interface{})
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOption = &Option{ NumCache: 20, NumStack: 99, Level: LEVELALL, }
Functions ¶
Types ¶
type Level ¶
type Level uint8
const ( LEVELUNKNOWN Level = 0 LEVELPANIC Level = 1 << iota LEVELERROR LEVELWARN LEVELINFO LEVELDEBUG LEVELALL Level = LEVELPANIC | LEVELERROR | LEVELWARN | LEVELINFO | LEVELDEBUG )
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewWithOption ¶
func (*Logger) AddListener ¶
func (*Logger) UpdateListener ¶
Click to show internal directories.
Click to hide internal directories.