package log
import "git.wntrmute.dev/kyle/goutils/log"
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
Functions ¶
func Alert ¶
func Alert(args ...interface{})
func Alertf ¶
func Alertf(format string, args ...interface{})
func Alertln ¶
func Alertln(args ...interface{})
func ChangePriority ¶
func Crit ¶
func Crit(args ...interface{})
func Critf ¶
func Critf(format string, args ...interface{})
func Critln ¶
func Critln(args ...interface{})
func Debug ¶
func Debug(args ...interface{})
func Debugf ¶
func Debugf(format string, args ...interface{})
func Debugln ¶
func Debugln(args ...interface{})
func Emerg ¶
func Emerg(args ...interface{})
func Emergf ¶
func Emergf(format string, args ...interface{})
func Emergln ¶
func Emergln(args ...interface{})
func Err ¶
func Err(args ...interface{})
func Errf ¶
func Errf(format string, args ...interface{})
func Errln ¶
func Errln(args ...interface{})
func Fatal ¶
func Fatal(args ...interface{})
func FatalError ¶
FatalError will only execute if err != nil. If it does, it will print the message (append the error) and exit the program.
func Fatalf ¶
func Fatalf(format string, args ...interface{})
func Info ¶
func Info(args ...interface{})
func Infof ¶
func Infof(format string, args ...interface{})
func Infoln ¶
func Infoln(args ...interface{})
func Notice ¶
func Notice(args ...interface{})
func Noticef ¶
func Noticef(format string, args ...interface{})
func Noticeln ¶
func Noticeln(args ...interface{})
func Setup ¶
func Spew ¶
func Spew(args ...interface{})
Spew will pretty print the args if the logger is set to DEBUG priority.
func Warning ¶
func Warning(args ...interface{})
func Warningf ¶
func Warningf(format string, args ...interface{})
func Warningln ¶
func Warningln(args ...interface{})
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.
Source Files ¶
logger.go
- Version
- v1.7.7 (latest)
- Published
- Jun 15, 2024
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 4 days ago –
Tools for package owners.