Documentation
¶
Index ¶
- func NewLoggerPipelineFactory(formatter formatter.Formatter, writer io.Writer) log.LoggerFactory
- type LoggerPipeline
- func (pipeline *LoggerPipeline) Alert(message string)
- func (pipeline *LoggerPipeline) Alertd(data interface{})
- func (pipeline *LoggerPipeline) Alerte(err error)
- func (pipeline *LoggerPipeline) Alertf(format string, args ...interface{})
- func (pipeline *LoggerPipeline) Critical(message string)
- func (pipeline *LoggerPipeline) Criticald(data interface{})
- func (pipeline *LoggerPipeline) Criticale(err error)
- func (pipeline *LoggerPipeline) Criticalf(format string, args ...interface{})
- func (pipeline *LoggerPipeline) Debug(message string)
- func (pipeline *LoggerPipeline) Debugd(data interface{})
- func (pipeline *LoggerPipeline) Debuge(err error)
- func (pipeline *LoggerPipeline) Debugf(format string, args ...interface{})
- func (pipeline *LoggerPipeline) Emergency(message string)
- func (pipeline *LoggerPipeline) Emergencyd(data interface{})
- func (pipeline *LoggerPipeline) Emergencye(err error)
- func (pipeline *LoggerPipeline) Emergencyf(format string, args ...interface{})
- func (pipeline *LoggerPipeline) Error(message string)
- func (pipeline *LoggerPipeline) Errord(data interface{})
- func (pipeline *LoggerPipeline) Errore(err error)
- func (pipeline *LoggerPipeline) Errorf(format string, args ...interface{})
- func (pipeline *LoggerPipeline) Info(message string)
- func (pipeline *LoggerPipeline) Infod(data interface{})
- func (pipeline *LoggerPipeline) Infoe(err error)
- func (pipeline *LoggerPipeline) Infof(format string, args ...interface{})
- func (pipeline *LoggerPipeline) Log(args ...interface{})
- func (pipeline *LoggerPipeline) Notice(message string)
- func (pipeline *LoggerPipeline) Noticed(data interface{})
- func (pipeline *LoggerPipeline) Noticee(err error)
- func (pipeline *LoggerPipeline) Noticef(format string, args ...interface{})
- func (pipeline *LoggerPipeline) SetLevel(level log.Level)
- func (pipeline *LoggerPipeline) Warning(message string)
- func (pipeline *LoggerPipeline) Warningd(data interface{})
- func (pipeline *LoggerPipeline) Warninge(err error)
- func (pipeline *LoggerPipeline) Warningf(format string, args ...interface{})
- type LoggerPipelineFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLoggerPipelineFactory ¶
NewLoggerPipelineFactory Create a pipeline logger factory
Types ¶
type LoggerPipeline ¶
type LoggerPipeline struct {
// contains filtered or unexported fields
}
LoggerPipeline is a regular pipeline that transforms and writes logs to a regular io.Writer
func NewLoggerPipeline ¶
func NewLoggerPipeline(level log.Level, formatter formatter.Formatter, writer io.Writer) *LoggerPipeline
NewLoggerPipeline creates a new logger pipeline with the configured minimum log level, a formatter to transform, and a writer to write the log to.
func (*LoggerPipeline) Alert ¶
func (pipeline *LoggerPipeline) Alert(message string)
Alert writes a string message on the alert level
func (*LoggerPipeline) Alertd ¶
func (pipeline *LoggerPipeline) Alertd(data interface{})
Alertd writes a generic data interface on the alert level
func (*LoggerPipeline) Alerte ¶
func (pipeline *LoggerPipeline) Alerte(err error)
Alerte writes an error on the alert level
func (*LoggerPipeline) Alertf ¶
func (pipeline *LoggerPipeline) Alertf(format string, args ...interface{})
Alertf writes messages in an sprintf-style format on the alert level
func (*LoggerPipeline) Critical ¶
func (pipeline *LoggerPipeline) Critical(message string)
Critical writes a string message on the critical level
func (*LoggerPipeline) Criticald ¶
func (pipeline *LoggerPipeline) Criticald(data interface{})
Criticald writes a generic data interface on the critical level
func (*LoggerPipeline) Criticale ¶
func (pipeline *LoggerPipeline) Criticale(err error)
Criticale writes an error on the critical level
func (*LoggerPipeline) Criticalf ¶
func (pipeline *LoggerPipeline) Criticalf(format string, args ...interface{})
Criticalf writes messages in an sprintf-style format on the critical level
func (*LoggerPipeline) Debug ¶
func (pipeline *LoggerPipeline) Debug(message string)
Debug writes a string message on the debug level
func (*LoggerPipeline) Debugd ¶
func (pipeline *LoggerPipeline) Debugd(data interface{})
Debugd writes a generic data interface on the debug level
func (*LoggerPipeline) Debuge ¶
func (pipeline *LoggerPipeline) Debuge(err error)
Debuge writes an error on the debug level
func (*LoggerPipeline) Debugf ¶
func (pipeline *LoggerPipeline) Debugf(format string, args ...interface{})
Debugf writes messages in an sprintf-style format on the debug level
func (*LoggerPipeline) Emergency ¶
func (pipeline *LoggerPipeline) Emergency(message string)
Emergency writes a string message on the emergency level
func (*LoggerPipeline) Emergencyd ¶
func (pipeline *LoggerPipeline) Emergencyd(data interface{})
Emergencyd writes a generic data interface on the emergency level
func (*LoggerPipeline) Emergencye ¶
func (pipeline *LoggerPipeline) Emergencye(err error)
Emergencye writes an error on the emergency level
func (*LoggerPipeline) Emergencyf ¶
func (pipeline *LoggerPipeline) Emergencyf(format string, args ...interface{})
Emergencyf writes messages in an sprintf-style format on the emergency level
func (*LoggerPipeline) Error ¶
func (pipeline *LoggerPipeline) Error(message string)
Error writes a string message on the error level
func (*LoggerPipeline) Errord ¶
func (pipeline *LoggerPipeline) Errord(data interface{})
Errord writes a generic data interface on the error level
func (*LoggerPipeline) Errore ¶
func (pipeline *LoggerPipeline) Errore(err error)
Errore writes an error on the error level
func (*LoggerPipeline) Errorf ¶
func (pipeline *LoggerPipeline) Errorf(format string, args ...interface{})
Errorf writes messages in an sprintf-style format on the error level
func (*LoggerPipeline) Info ¶
func (pipeline *LoggerPipeline) Info(message string)
Info writes a string message on the info level
func (*LoggerPipeline) Infod ¶
func (pipeline *LoggerPipeline) Infod(data interface{})
Infod writes a generic data interface on the info level
func (*LoggerPipeline) Infoe ¶
func (pipeline *LoggerPipeline) Infoe(err error)
Infoe writes an error on the info level
func (*LoggerPipeline) Infof ¶
func (pipeline *LoggerPipeline) Infof(format string, args ...interface{})
Infof writes messages in an sprintf-style format on the info level
func (*LoggerPipeline) Log ¶
func (pipeline *LoggerPipeline) Log(args ...interface{})
Log provides a generic log method that logs on the info level
func (*LoggerPipeline) Notice ¶
func (pipeline *LoggerPipeline) Notice(message string)
Notice writes a string message on the notice level
func (*LoggerPipeline) Noticed ¶
func (pipeline *LoggerPipeline) Noticed(data interface{})
Noticed writes a generic data interface on the notice level
func (*LoggerPipeline) Noticee ¶
func (pipeline *LoggerPipeline) Noticee(err error)
Noticee writes an error on the notice level
func (*LoggerPipeline) Noticef ¶
func (pipeline *LoggerPipeline) Noticef(format string, args ...interface{})
Noticef writes messages in an sprintf-style format on the notice level
func (*LoggerPipeline) SetLevel ¶
func (pipeline *LoggerPipeline) SetLevel(level log.Level)
SetLevel sets the minimum log level
func (*LoggerPipeline) Warning ¶
func (pipeline *LoggerPipeline) Warning(message string)
Warning writes a string message on the warning level
func (*LoggerPipeline) Warningd ¶
func (pipeline *LoggerPipeline) Warningd(data interface{})
Warningd writes a generic data interface on the warning level
func (*LoggerPipeline) Warninge ¶
func (pipeline *LoggerPipeline) Warninge(err error)
Warninge writes an error on the warning level
func (*LoggerPipeline) Warningf ¶
func (pipeline *LoggerPipeline) Warningf(format string, args ...interface{})
Warningf writes messages in an sprintf-style format on the warning level
type LoggerPipelineFactory ¶
type LoggerPipelineFactory struct {
// contains filtered or unexported fields
}
LoggerPipelineFactory Create a pipeline logger