Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Logger is a shared go-kit logger. Logger = log.NewNopLogger() )
Functions ¶
func CheckFatal ¶
CheckFatal prints an error and exits with error code 1 if err is non-nil
func Flush ¶
func Flush() error
Flush forces the buffered logger, if configured, to flush to the underlying writer This is typically only called when the application is shutting down.
func InitLogger ¶
InitLogger initialises the global gokit logger and returns that logger.
func WarnExperimentalUse ¶
func WarnExperimentalUse(feature string)
WarnExperimentalUse logs a warning and increments the experimental features metric.
Types ¶
type DoNotLogError ¶
type DoNotLogError struct{ Err error }
func (DoNotLogError) Error ¶
func (i DoNotLogError) Error() string
func (DoNotLogError) Unwrap ¶
func (i DoNotLogError) Unwrap() error
type LoggerConfig ¶
type LoggerConfig struct {
Enabled bool
LogsPerSecond float64
LogsPerSecondBurst int
Registry prometheus.Registerer
}
Click to show internal directories.
Click to hide internal directories.