package
0.25.1
Repository: https://github.com/desrin/common.git
Documentation: pkg.go.dev

# Functions

AddFlags adds the flags used by this package to the Kingpin application.
AddHook adds hook to Prometheus' original logger.
Base returns the default Logger logging to.
Debug logs a message at level Debug on the standard logger.
Debugf logs a message at level Debug on the standard logger.
Debugln logs a message at level Debug on the standard logger.
Error logs a message at level Error on the standard logger.
Errorf logs a message at level Error on the standard logger.
Errorln logs a message at level Error on the standard logger.
Fatal logs a message at level Fatal on the standard logger.
Fatalf logs a message at level Fatal on the standard logger.
Fatalln logs a message at level Fatal on the standard logger.
Info logs a message at level Info on the standard logger.
Infof logs a message at level Info on the standard logger.
Infoln logs a message at level Info on the standard logger.
NewErrorLogger returns a log.Logger that is meant to be used in the ErrorLog field of an http.Server to log HTTP server errors.
NewLogger returns a new Logger logging to out.
NewNopLogger returns a logger that discards all log messages.
Warn logs a message at level Warn on the standard logger.
Warnf logs a message at level Warn on the standard logger.
Warnln logs a message at level Warn on the standard logger.
With adds a field to the logger.

# Interfaces

Logger is the interface for loggers used in the Prometheus components.