summaryrefslogtreecommitdiff
path: root/sd_daemon
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-09-05 00:19:00 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-09-05 00:19:00 -0400
commit7c289bf36d3a144447b25105ad789b1c734437e3 (patch)
treedd241336a8e1b0c6aff87ff775f1329f9cf25a8d /sd_daemon
parentce07ec5e3d5888a5068dff408c47cc9fef91f4b1 (diff)
go generate
Diffstat (limited to 'sd_daemon')
-rw-r--r--sd_daemon/.gitignore1
-rw-r--r--sd_daemon/log_util.go54
2 files changed, 54 insertions, 1 deletions
diff --git a/sd_daemon/.gitignore b/sd_daemon/.gitignore
deleted file mode 100644
index 1687796..0000000
--- a/sd_daemon/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/log_util.go
diff --git a/sd_daemon/log_util.go b/sd_daemon/log_util.go
new file mode 100644
index 0000000..d244913
--- /dev/null
+++ b/sd_daemon/log_util.go
@@ -0,0 +1,54 @@
+// ./log_util.go.gen
+// Code generated by the above command; DO NOT EDIT.
+
+package sd_daemon
+
+import "log/syslog"
+
+// Emerg writes a message with priority syslog.LOG_EMERG to the log.
+func (l *Logger) Emerg(msg string) error {
+ _, err := l.WriteString(syslog.LOG_EMERG, msg)
+ return err
+}
+
+// Alert writes a message with priority syslog.LOG_ALERT to the log.
+func (l *Logger) Alert(msg string) error {
+ _, err := l.WriteString(syslog.LOG_ALERT, msg)
+ return err
+}
+
+// Crit writes a message with priority syslog.LOG_CRIT to the log.
+func (l *Logger) Crit(msg string) error {
+ _, err := l.WriteString(syslog.LOG_CRIT, msg)
+ return err
+}
+
+// Err writes a message with priority syslog.LOG_ERR to the log.
+func (l *Logger) Err(msg string) error {
+ _, err := l.WriteString(syslog.LOG_ERR, msg)
+ return err
+}
+
+// Warning writes a message with priority syslog.LOG_WARNING to the log.
+func (l *Logger) Warning(msg string) error {
+ _, err := l.WriteString(syslog.LOG_WARNING, msg)
+ return err
+}
+
+// Notice writes a message with priority syslog.LOG_NOTICE to the log.
+func (l *Logger) Notice(msg string) error {
+ _, err := l.WriteString(syslog.LOG_NOTICE, msg)
+ return err
+}
+
+// Info writes a message with priority syslog.LOG_INFO to the log.
+func (l *Logger) Info(msg string) error {
+ _, err := l.WriteString(syslog.LOG_INFO, msg)
+ return err
+}
+
+// Debug writes a message with priority syslog.LOG_DEBUG to the log.
+func (l *Logger) Debug(msg string) error {
+ _, err := l.WriteString(syslog.LOG_DEBUG, msg)
+ return err
+}