diff options
Diffstat (limited to 'libgo/go/log/syslog/syslog.go')
-rw-r--r-- | libgo/go/log/syslog/syslog.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libgo/go/log/syslog/syslog.go b/libgo/go/log/syslog/syslog.go index 914391af80d..aef63480f16 100644 --- a/libgo/go/log/syslog/syslog.go +++ b/libgo/go/log/syslog/syslog.go @@ -93,13 +93,19 @@ func (w *Writer) Emerg(m string) (err error) { return err } +// Alert logs a message using the LOG_ALERT priority. +func (w *Writer) Alert(m string) (err error) { + _, err = w.writeString(LOG_ALERT, m) + return err +} + // Crit logs a message using the LOG_CRIT priority. func (w *Writer) Crit(m string) (err error) { _, err = w.writeString(LOG_CRIT, m) return err } -// ERR logs a message using the LOG_ERR priority. +// Err logs a message using the LOG_ERR priority. func (w *Writer) Err(m string) (err error) { _, err = w.writeString(LOG_ERR, m) return err |