From eb9b6bb15666ab0044e2244d75288f0d010431ec Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 18 Dec 2017 15:41:30 -0500 Subject: sd_daemon.Logger: improve docs --- sd_daemon/log.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sd_daemon') diff --git a/sd_daemon/log.go b/sd_daemon/log.go index 138a07a..dc77907 100644 --- a/sd_daemon/log.go +++ b/sd_daemon/log.go @@ -53,10 +53,7 @@ func NewLogger(w io.Writer) *Logger { // Log is a Logger whose interface is very similar to syslog.Writer, // but writes to os.Stderr under the assumption that stderr is -// forwarded to syslog (or journald). -// -// You are encouraged to use stderr unless you have a good reason to -// talk to syslog or journald directly. +// forwarded to syslogd (or journald). var Log = NewLogger(os.Stderr) // Cheap version of @@ -114,7 +111,7 @@ func (l *Logger) WriteString(pri syslog.Priority, msg string) (n int, err error) return l.out.Write(l.buf) } -// WriteString writes a message with the specified priority to the +// WriteBytes writes a message with the specified priority to the // log. func (l *Logger) WriteBytes(pri syslog.Priority, msg []byte) (n int, err error) { // Copy/pasted from WriteString and -- cgit v1.2.3