summaryrefslogtreecommitdiff
path: root/sd_daemon/log_util.go
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2023-12-17 21:06:02 -0700
committerLuke T. Shumaker <lukeshu@lukeshu.com>2023-12-17 21:06:02 -0700
commit61fd0e01206fbb36661550b352da0b20e045b6bc (patch)
tree9eab3f2d11b6e94e96230c3b5427a346231a9f9c /sd_daemon/log_util.go
parentcf3611207be8fcc98c80f4629aabe5c17e76cf57 (diff)
Generate artifacts
Diffstat (limited to 'sd_daemon/log_util.go')
-rw-r--r--sd_daemon/log_util.go54
1 files changed, 54 insertions, 0 deletions
diff --git a/sd_daemon/log_util.go b/sd_daemon/log_util.go
new file mode 100644
index 0000000..93e0897
--- /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.LogString(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.LogString(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.LogString(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.LogString(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.LogString(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.LogString(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.LogString(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.LogString(syslog.LOG_DEBUG, msg)
+ return err
+}