summaryrefslogtreecommitdiff
path: root/sd_daemon
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-12-18 15:41:30 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2017-12-18 15:41:30 -0500
commiteb9b6bb15666ab0044e2244d75288f0d010431ec (patch)
tree6ef212291ceba14f91e85830067758a71f15c5d1 /sd_daemon
parentdc9fd4538267a3f793c9eee27c8bb118e784b778 (diff)
sd_daemon.Logger: improve docs
Diffstat (limited to 'sd_daemon')
-rw-r--r--sd_daemon/log.go7
1 files changed, 2 insertions, 5 deletions
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