Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NopFormatter ¶
type NopFormatter struct{}
NopFormatter always yields zero bytes and consumes 0 allocs/op.
type StdDemuxerHook ¶
type StdDemuxerHook struct {
// contains filtered or unexported fields
}
StdDemuxerHook demuxes logs to io.Writers based on severity. By default it uses the following outputs: error and higher -> os.Stderr warning and lower -> os.Stdout
func New ¶
func New(parent *logrus.Logger) *StdDemuxerHook
New returns a new StdDemuxerHook by silencing the parent logger and configuring separate loggers for stderr and stdout with the parents loggers properties.
func (*StdDemuxerHook) Fire ¶
func (hook *StdDemuxerHook) Fire(entry *logrus.Entry) error
Fire is triggered on new log entries
func (*StdDemuxerHook) Levels ¶
func (*StdDemuxerHook) Levels() []logrus.Level
Levels returns all levels this hook should be registered to
Click to show internal directories.
Click to hide internal directories.