Documentation ¶
Overview ¶
Package logger is a wrapper around UNIX syslog, so that it also may be wrapped with something else for Windows (Sadly, the stdlib log/syslog is frozen, and there is no Windows implementation.)
Index ¶
- func Alert(s string) error
- func LogClose() error
- func LogCrit(s string) error
- func LogDebug(s string) error
- func LogEmerg(s string) error
- func LogErr(s string) error
- func LogInfo(s string) error
- func LogNotice(s string) error
- func LogWarning(s string) error
- func LogWrite(b []byte) (int, error)
- type Priority
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Priority ¶
Priority is the logger priority
const ( // From /usr/include/sys/syslog.h. // These are the same on Linux, BSD, and OS X. LOG_EMERG Priority = iota LOG_ALERT LOG_CRIT LOG_ERR LOG_WARNING LOG_NOTICE LOG_INFO LOG_DEBUG )
nolint: golint
const ( // From /usr/include/sys/syslog.h. // These are the same up to LOG_FTP on Linux, BSD, and OS X. LOG_KERN Priority = iota << 3 LOG_USER LOG_MAIL LOG_DAEMON LOG_AUTH LOG_SYSLOG LOG_LPR LOG_NEWS LOG_UUCP LOG_CRON LOG_AUTHPRIV LOG_FTP LOG_LOCAL0 LOG_LOCAL1 LOG_LOCAL2 LOG_LOCAL3 LOG_LOCAL4 LOG_LOCAL5 LOG_LOCAL6 LOG_LOCAL7 )
nolint: golint
Click to show internal directories.
Click to hide internal directories.