Documentation ¶
Overview ¶
Package log provides a logging mechanism designed to have a similar feel to the original syslog calls in C, but with a few extra behaviors that could come in handy. The motivation for this piece is the notion that not only is it vital to make logging as pain-free as possible from the perspective of a developer, but to also defer as many decisions as possible about retention and routing to administrators.
Index ¶
- func Alert(m interface{}) error
- func Closelog() error
- func Crit(m interface{}) error
- func Critical(m interface{}) error
- func Debug(m interface{}) error
- func Emerg(m interface{}) error
- func Emergency(m interface{}) error
- func Err(m interface{}) error
- func Error(m interface{}) error
- func Info(m interface{}) error
- func Information(m interface{}) error
- func Notice(m interface{}) error
- func Openlog(ident string, o opt.Option, f pri.Priority) error
- func SetSyslogger(s syslogger.Syslogger)
- func Syslog(p pri.Priority, msg interface{}) error
- func Warn(m interface{}) error
- func Warning(m interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Closelog ¶
func Closelog() error
Closelog ends the log session of the global syslogger.Syslogger. Depending on which kind of syslogger.Syslogger the default is set to, this could result in all future Syslog calls creating errors, or it could have practically no effect.
func Emergency ¶
func Emergency(m interface{}) error
Emergency sends a log message with priority Emerg
func Information ¶
func Information(m interface{}) error
Information sends a log message with priority Info
func Openlog ¶
Openlog allows the global syslogger.Syslogger to be reset with certain explicit initialization values.
func SetSyslogger ¶
SetSyslogger overwrites the default global syslogger.Syslogger with the one given explicitly.
Types ¶
This section is empty.