aboutsummaryrefslogtreecommitdiff
path: root/src/log
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2016-10-20 15:51:26 -0400
committerRuss Cox <rsc@golang.org>2016-10-24 15:32:38 +0000
commitee4b58df61e25bec2d526947dd76cd2ab5d3051d (patch)
tree6379e6367c513aec06c2387a9fa0267f253d6973 /src/log
parentfc88a0f4ce66704d04f2b6d7730e722ef2b9a5de (diff)
downloadgo-ee4b58df61e25bec2d526947dd76cd2ab5d3051d.tar.gz
go-ee4b58df61e25bec2d526947dd76cd2ab5d3051d.zip
log: document that log messages end in newlines
Fixes #16564. Change-Id: Idd7b3c8f1d8415acd952d1efb6dc35ba4191805d Reviewed-on: https://go-review.googlesource.com/31578 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Quentin Smith <quentin@golang.org>
Diffstat (limited to 'src/log')
-rw-r--r--src/log/log.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/log/log.go b/src/log/log.go
index 26cdb532df..58b8788be4 100644
--- a/src/log/log.go
+++ b/src/log/log.go
@@ -8,6 +8,8 @@
// Panic[f|ln], which are easier to use than creating a Logger manually.
// That logger writes to standard error and prints the date and time
// of each logged message.
+// Every log message is output on a separate line: if the message being
+// printed does not end in a newline, the logger will add one.
// The Fatal functions call os.Exit(1) after writing the log message.
// The Panic functions call panic after writing the log message.
package log