Documentation ¶
Index ¶
- Constants
- type XLog
- func (xl XLog) Alert(message string)
- func (xl XLog) Alertf(message string, values ...interface{})
- func (xl XLog) Crit(message string)
- func (xl XLog) Critf(message string, values ...interface{})
- func (xl XLog) Critical(message string)
- func (xl XLog) Debug(message string)
- func (xl XLog) Debugf(message string, values ...interface{})
- func (xl XLog) Emerg(message string)
- func (xl XLog) Emergf(message string, values ...interface{})
- func (xl XLog) Err(message string)
- func (xl XLog) Errf(message string, values ...interface{})
- func (xl XLog) Error(message string)
- func (xl XLog) Fatal(message string)
- func (xl XLog) Info(message string)
- func (xl XLog) Infof(message string, values ...interface{})
- func (xl XLog) Log(severity syslog.Priority, message string)
- func (xl XLog) Notice(message string)
- func (xl XLog) Noticef(message string, values ...interface{})
- func (xl XLog) Warn(message string)
- func (xl XLog) Warnf(message string, values ...interface{})
- func (xl XLog) Warning(message string)
Constants ¶
View Source
const ( // https://unix.superglobalmegacorp.com/Net2/newsrc/sys/syslog.h.html LOG_EMERG = 0 /* system is unusable */ LOG_ALERT = 1 /* action must be taken immediately */ LOG_CRIT = 2 /* critical conditions */ LOG_ERR = 3 /* error conditions */ LOG_WARNING = 4 /* warning conditions */ LOG_NOTICE = 5 /* normal but significant condition */ LOG_INFO = 6 /* informational */ LOG_DEBUG = 7 /* debug-level messages */ )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type XLog ¶
type XLog struct { // Syslog logger SYSLOG *syslog.Writer STDOUT *log.Logger STDERR *log.Logger DEBUG *bool LOG_LEVEL syslog.Priority // LOG_EMERG=0 .. LOG_DEBUG=7 }
Click to show internal directories.
Click to hide internal directories.