Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger = logrus.New()
Logger is the logger object used by the package
Functions ¶
Types ¶
type Priority ¶
type Priority int
Priority is a combination of the syslog facility and severity. For example, Alert | Ftp sends an alert severity message from the FTP facility. The default severity is Emerg; the default facility is Kern.
const ( // From /usr/include/sys/syslog.h. // These are the same up to LOG_FTP on Linux, BSD, and OS X. Kern Priority = iota << 3 // LOG_KERN User // LOG_USER Mail // LOG_MAIL Daemon // LOG_DAEMON Auth // LOG_AUTH Syslog // LOG_SYSLOG Lpr // LOG_LPR News // LOG_NEWS Uucp // LOG_UUCP Cron // LOG_CRON Authpriv // LOG_AUTHPRIV Ftp // LOG_FTP Local0 // LOG_LOCAL0 Local1 // LOG_LOCAL1 Local2 // LOG_LOCAL2 Local3 // LOG_LOCAL3 Local4 // LOG_LOCAL4 Local5 // LOG_LOCAL5 Local6 // LOG_LOCAL6 Local7 // LOG_LOCAL7 )
type Writer ¶
type Writer interface { io.WriteCloser Emerg(string) error Crit(string) error Err(string) error Warning(string) error Info(string) error Debug(string) error WithTag(tag string) Writer WithPriority(priority Priority) Writer }
Click to show internal directories.
Click to hide internal directories.