pipeline

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoggerPipelineFactory

func NewLoggerPipelineFactory(formatter formatter.Formatter, writer io.Writer) log.LoggerFactory

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

func (*LoggerPipelineFactory) Make

func (f *LoggerPipelineFactory) Make(level log.Level) log.Logger

Make Create the pipeline

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL