Documentation ¶
Index ¶
- Constants
- Variables
- func Debug(event string, properties ...interface{})
- func DebugCall(event string, err error, properties ...interface{}) error
- func Error(event string, properties ...interface{})
- func Fatal(event string, properties ...interface{})
- func Info(event string, properties ...interface{})
- func InfoCall(event string, err error, properties ...interface{}) error
- func Log(level int, event string, properties ...interface{})
- func LogPanic(recovered interface{}, properties ...interface{}) interface{}
- func SetMinLevel(level int)
- func ShouldLog(level int) bool
- func Trace(event string, properties ...interface{})
- func TraceCall(event string, err error, properties ...interface{}) error
- func Warn(event string, properties ...interface{})
- type Context
- func (ctx *Context) Add(key string, value interface{})
- func (ctx *Context) Debug(event string, properties ...interface{})
- func (ctx *Context) DebugCall(event string, err error, properties ...interface{}) error
- func (ctx *Context) Error(event string, properties ...interface{})
- func (ctx *Context) Fatal(event string, properties ...interface{})
- func (ctx *Context) Info(event string, properties ...interface{})
- func (ctx *Context) InfoCall(event string, err error, properties ...interface{}) error
- func (ctx *Context) LogAccess(event string, err error, properties ...interface{}) error
- func (ctx *Context) Trace(event string, properties ...interface{})
- func (ctx *Context) TraceCall(event string, err error, properties ...interface{}) error
- func (ctx *Context) Value(key interface{}) interface{}
- func (ctx *Context) Warn(event string, properties ...interface{})
Constants ¶
View Source
const LevelDebug = logger.LevelDebug
View Source
const LevelDebugCall = logger.LevelDebugCall
View Source
const LevelError = logger.LevelError
View Source
const LevelFatal = logger.LevelFatal
View Source
const LevelInfo = logger.LevelInfo
View Source
const LevelInfoCall = logger.LevelInfoCall
View Source
const LevelTrace = logger.LevelTrace
View Source
const LevelTraceCall = logger.LevelTraceCall
View Source
const LevelWarn = logger.LevelWarn
Variables ¶
View Source
var EventAggregator logger.EventSink = stats.NewEventAggregator(func(aggregator *stats.EventAggregator) { aggregator.Collector = nil })
View Source
var EventWriter logger.EventSink = output.NewEventWriter(func(eventWriter *output.EventWriter) { eventWriter.Format = &hrf.Format{} eventWriter.Writer = os.Stdout })
Functions ¶
func DebugCall ¶
DebugCall will calculate stats in DEBUG level DebugCall will output individual log entries in DEBUG_CALL level (TRACE includes DEBUG_CALL)
func InfoCall ¶
InfoCall will calculate stats in INFO level InfoCall will output individual log entries in INFO_CALL level (DEBUG includes INFO_CALL)
func SetMinLevel ¶
func SetMinLevel(level int)
Types ¶
Click to show internal directories.
Click to hide internal directories.