Documentation ¶
Overview ¶
Package syslog is a syslog-type facility for logging.
Index ¶
- func Alert(args ...interface{})
- func Alertf(format string, args ...interface{})
- func Alertln(args ...interface{})
- func ChangePriority(level string) error
- func Crit(args ...interface{})
- func Critf(format string, args ...interface{})
- func Critln(args ...interface{})
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Debugln(args ...interface{})
- func Emerg(args ...interface{})
- func Emergf(format string, args ...interface{})
- func Emergln(args ...interface{})
- func Err(args ...interface{})
- func Errf(format string, args ...interface{})
- func Errln(args ...interface{})
- func Fatal(args ...interface{})
- func FatalError(err error, message string)
- func Fatalf(format string, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Infoln(args ...interface{})
- func Notice(args ...interface{})
- func Noticef(format string, args ...interface{})
- func Noticeln(args ...interface{})
- func Setup(opts *Options) error
- func Spew(args ...interface{})
- func Warning(args ...interface{})
- func Warningf(format string, args ...interface{})
- func Warningln(args ...interface{})
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangePriority ¶
func FatalError ¶ added in v1.7.2
FatalError will only execute if err != nil. If it does, it will print the message (append the error) and exit the program.
Types ¶
type Options ¶
func DefaultDebugOptions ¶
DefaultDebugOptions returns a sane set of debug defaults for syslog, using the program name as the tag name. withSyslog controls whether logs should be sent to syslog, too.
func DefaultOptions ¶
DefaultOptions returns a sane set of defaults for syslog, using the program name as the tag name. withSyslog controls whether logs should be sent to syslog, too.
Click to show internal directories.
Click to hide internal directories.