Documentation ¶
Overview ¶
Package loggerwr provides a wrapper for RBLs that implements a logging system.
This package is a work in progress and makes no API stability promises.
Index ¶
Constants ¶
View Source
const WrapperClass = "logger"
WrapperClass registered.
Variables ¶
This section is empty.
Functions ¶
func Builder ¶
func Builder(defaultCfg Config) xlistd.BuildWrapperFn
Builder returns a builder function.
Types ¶
type LogLevel ¶
type LogLevel int
LogLevel defines LogLevel for rules.
func StringToLevel ¶
StringToLevel returns the loglevel.
type Logger ¶
type Logger interface { Debugf(template string, args ...interface{}) Infof(template string, args ...interface{}) Warnf(template string, args ...interface{}) Errorf(template string, args ...interface{}) }
Logger defines the interface for the logger
type Wrapper ¶
type Wrapper struct {
// contains filtered or unexported fields
}
Wrapper implements a logger for list checkers.
Click to show internal directories.
Click to hide internal directories.