Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Logger = log.NewNopLogger()
)
Functions ¶
func CheckFatal ¶
CheckFatal prints an error and exits with error code 1 if err is non-nil
func InitLogger ¶
InitLogger initialises the global gokit logger (util_log.Logger) and overrides the default logger for the server.
func LevelFilter ¶
TODO(dannyk): remove once weaveworks/common updates to go-kit/log
-> we can then revert to using Level.Gokit
Types ¶
type PrometheusLogger ¶
type PrometheusLogger struct {
// contains filtered or unexported fields
}
PrometheusLogger exposes Prometheus counters for each of go-kit's log levels.
func (*PrometheusLogger) Log ¶
func (pl *PrometheusLogger) Log(kv ...interface{}) error
Log increments the appropriate Prometheus counter depending on the log level.
Click to show internal directories.
Click to hide internal directories.