Documentation ¶
Index ¶
- Constants
- Variables
- func Debug(event string, properties ...interface{})
- func DebugCall(event string, err error, properties ...interface{}) error
- func DebugTimer() int64
- 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 InfoTimer() int64
- 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 TraceTimer() int64
- 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) SuppressLevelsBelow(level int)
- 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 = spi.LevelDebug
View Source
const LevelDebugCall = spi.LevelDebugCall
View Source
const LevelError = spi.LevelError
View Source
const LevelFatal = spi.LevelFatal
View Source
const LevelInfo = spi.LevelInfo
View Source
const LevelInfoCall = spi.LevelInfoCall
View Source
const LevelTrace = spi.LevelTrace
View Source
const LevelTraceCall = spi.LevelTraceCall
View Source
const LevelWarn = spi.LevelWarn
Variables ¶
View Source
var EventAggregator spi.EventSink = stats.NewEventAggregator(stats.EventAggregatorConfig{ Collector: nil, })
View Source
var EventWriter spi.EventSink = output.NewEventWriter(output.EventWriterConfig{ Format: &hrf.Format{}, 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 DebugTimer ¶
func DebugTimer() int64
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)
func TraceCall ¶
TraceCall will calculate stats in TRACE level TraceCall will output individual log entries in TRACE_CALL level
func TraceTimer ¶
func TraceTimer() int64
Types ¶
Click to show internal directories.
Click to hide internal directories.