Documentation ¶
Index ¶
- Variables
- type Level
- type MultiLogger
- func (l MultiLogger) Criticalf(format string, values ...interface{})
- func (l MultiLogger) Debugf(format string, values ...interface{})
- func (l MultiLogger) Errorf(format string, values ...interface{})
- func (l MultiLogger) Infof(format string, values ...interface{})
- func (l MultiLogger) SetFlags(flags int)
- func (l MultiLogger) SetOutput(printOutput io.Writer, errorOutput io.Writer)
- func (l MultiLogger) SetPrefix(prefix string)
- func (l MultiLogger) Warningf(format string, values ...interface{})
Constants ¶
This section is empty.
Variables ¶
var StdOutErrMultiLoggerProviderSet = wire.NewSet( ProvideStdOutErrMultiLogger, )
StdOutErrMultiLoggerProviderSet provides a MultiLogger to stdout/stderr
Functions ¶
This section is empty.
Types ¶
type MultiLogger ¶
type MultiLogger struct { PrintLogger *log.Logger ErrorLogger *log.Logger PrintLevel Level ErrorLevel Level }
MultiLogger provides a three tiered (ignore, print, error) logger wrapper around log.MultiLogger
func ProvideStdOutErrMultiLogger ¶
func ProvideStdOutErrMultiLogger(debugMode config.DebugMode) (*MultiLogger, func())
ProvideStdOutErrMultiLogger creates a custom MultiLogger based on whether we are running in debug mode
func (MultiLogger) Criticalf ¶
func (l MultiLogger) Criticalf(format string, values ...interface{})
Criticalf prints a debug message to the appropriate logger
func (MultiLogger) Debugf ¶
func (l MultiLogger) Debugf(format string, values ...interface{})
Debugf prints a debug message to the appropriate logger
func (MultiLogger) Errorf ¶
func (l MultiLogger) Errorf(format string, values ...interface{})
Errorf prints a debug message to the appropriate logger
func (MultiLogger) Infof ¶
func (l MultiLogger) Infof(format string, values ...interface{})
Infof prints a debug message to the appropriate logger
func (MultiLogger) SetFlags ¶
func (l MultiLogger) SetFlags(flags int)
SetFlags sets the flags for both wrapped loggers
func (MultiLogger) SetOutput ¶
func (l MultiLogger) SetOutput(printOutput io.Writer, errorOutput io.Writer)
SetOutput sets the outputs for the print and error output loggers
func (MultiLogger) SetPrefix ¶
func (l MultiLogger) SetPrefix(prefix string)
SetPrefix sets the prefix for both wrapped loggers
func (MultiLogger) Warningf ¶
func (l MultiLogger) Warningf(format string, values ...interface{})
Warningf prints a debug message to the appropriate logger