Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //StdOutLog simple stdout debug log StdOutLog = func() log.Logger { l := log.Default() l.SetLevel(log.LevelDebug) l.SetOutput(StdOutWriter) return l }() )
View Source
var StdOutMetric = NewMetric(StdOutWriter)
StdOutMetric simple stdout metrig writer
View Source
var StdOutWriter = &stdout{Writer: os.Stdout}
StdOutWriter simple stdout writer
Functions ¶
This section is empty.
Types ¶
type MetricExecutor ¶
type MetricExecutor interface {
ExecutionTime(name string, call func())
}
MetricExecutor interface
var ( DevNullLog log.Logger = &devNullLogger{} DevNullMetric MetricExecutor = new(devNullMetric) )
type MetricWriter ¶
MetricWriter interface
Click to show internal directories.
Click to hide internal directories.