Documentation ¶
Overview ¶
Package filter provides an appender which has filter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Appender ¶
type Appender struct {
// contains filtered or unexported fields
}
Appender is an logging appender which supports level threshold, inclusive or exclusive logger name.
func NewAppender ¶
NewAppender allocates and returns a new Appender
func (*Appender) Append ¶
func (a *Appender) Append(e *gol.LoggingEvent)
Append only send logging event to the assigned appender only when: - Logging level >= Threshold - Logger name is not in the excludes - Logger name is in the includes
func (*Appender) SetExcludes ¶
SetExcludes set exclusive logger names.
func (*Appender) SetIncludes ¶
SetIncludes set inclusive logger names.
func (*Appender) SetThreshold ¶
SetThreshold change logging threshold.
Click to show internal directories.
Click to hide internal directories.