Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilteringFormatter ¶
type FilteringFormatter struct {
// contains filtered or unexported fields
}
FilteringFormatter decorator implementing logrus.Formatter interface. It is a wrapper around a given formatter adding filtering by log entries keys.
func NewFilteringFormatter ¶
func NewFilteringFormatter(cfg FilteringFormatterConfig, wrapped logrus.Formatter) *FilteringFormatter
NewFilteringFormatter creates a new FilteringFormatter.
type FilteringFormatterConfig ¶
type FilteringFormatterConfig struct { IncludeFilters config.LogFilters ExcludeFilters config.LogFilters }
FilteringFormatterConfig is the configuration used to instantiate a new FilteringFormatter.
Click to show internal directories.
Click to hide internal directories.