Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
Channel represents a logger channel tracking a single value
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is a metrics/events logger that writes logged values and events into a comma separated file
func (*Logger) Event ¶
Event immediately adds a new line and adds the given event string in the last column
func (*Logger) NewChannel ¶
NewChannel creates a new value logger channel that writes values in a single column. If the relative change of the value is bigger than the given threshold then a new line is added immediately (threshold can also be 0).
func (*Logger) NewMinMaxChannel ¶
NewMinMaxChannel creates a new value logger channel that writes the minimum and maximum of the tracked value in two columns. It never triggers adding a new line. If zeroDefault is true then 0 is written to both min and max columns if no update was given during the last period. If it is false then the last update will appear in both columns.