Documentation ¶
Index ¶
- func NewFanLogger(level event.Level, loggers ...event.Logger) event.Logger
- func NewJSONLogger(out io.Writer, level event.Level) event.Logger
- func NewStdLogger(out io.Writer, scheme scheme.Scheme, level event.Level) event.Logger
- func NewSysLogger(addr, tag string) (event.Logger, error)
- type FanLogger
- type JSONLogger
- type StdLogger
- type SysLogLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFanLogger ¶
NewFanLogger returns a new logger.
func NewJSONLogger ¶
NewJSONLogger returns a StdLogger
func NewStdLogger ¶
NewStdLogger returns a StdLogger
Types ¶
type FanLogger ¶
FanLogger outputs to a list of loggers
func (*FanLogger) GetVerbose ¶
GetVerbose gets the verbose level
func (*FanLogger) SetVerbose ¶
SetVerbose sets the event verbose level
func (*FanLogger) WriteEvent ¶
WriteEvent ouputs an event to FanLogger
type JSONLogger ¶
JSONLogger defines an output handler
func (*JSONLogger) GetVerbose ¶
func (l *JSONLogger) GetVerbose() event.Level
GetVerbose gets the verbose level
func (*JSONLogger) SetVerbose ¶
func (l *JSONLogger) SetVerbose(level event.Level)
SetVerbose sets the event verbose level
func (*JSONLogger) WriteEvent ¶
func (l *JSONLogger) WriteEvent(e *event.Event)
WriteEvent ouputs an event to JSONlogger
type StdLogger ¶
StdLogger defines an output handler
func (*StdLogger) GetVerbose ¶
GetVerbose gets the verbose level
func (*StdLogger) SetVerbose ¶
SetVerbose sets the event verbose level
func (*StdLogger) WriteEvent ¶
WriteEvent ouputs an event to stdlogger
type SysLogLogger ¶
SysLogLogger outputs an event to SysLog
func (*SysLogLogger) Close ¶
func (l *SysLogLogger) Close() (err error)
Close passes Close to underlying object.
func (*SysLogLogger) GetVerbose ¶
func (l *SysLogLogger) GetVerbose() event.Level
GetVerbose gets the verbose level
func (*SysLogLogger) SetVerbose ¶
func (l *SysLogLogger) SetVerbose(level event.Level)
SetVerbose sets the event verbose level
func (*SysLogLogger) WriteEvent ¶
func (l *SysLogLogger) WriteEvent(e *event.Event)
WriteEvent ouputs an event to SysLog