Documentation ¶
Index ¶
- type Level
- type Logger
- func (l *Logger) Close() error
- func (l *Logger) Debugf(m string, args ...interface{})
- func (l *Logger) DisableSyslog() error
- func (l *Logger) EnableSyslog(facility syslog.Priority) (err error)
- func (l *Logger) Errorf(m string, args ...interface{})
- func (l *Logger) Fatalf(m string, args ...interface{})
- func (l *Logger) Infof(m string, args ...interface{})
- func (l *Logger) Logf(level Level, m string, args ...interface{})
- func (l *Logger) Warningf(m string, args ...interface{})
- func (l *Logger) Writer(level Level) io.WriteCloser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct { MinLevel Level // contains filtered or unexported fields }
Logger is a leveled logger capable of optionally logging to syslog
func (*Logger) DisableSyslog ¶
DisableSyslog always disables writing to syslog, but returns an errors from closing the connection
func (*Logger) EnableSyslog ¶
EnableSyslog enables sending of log messages to syslog
It returns any errors occurring while opening the connection (it does not enable syslog logging if there are errors)
Click to show internal directories.
Click to hide internal directories.