]> Cypherpunks repositories - gostls13.git/commitdiff
log: document that log messages end in newlines
authorRuss Cox <rsc@golang.org>
Thu, 20 Oct 2016 19:51:26 +0000 (15:51 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 24 Oct 2016 15:32:38 +0000 (15:32 +0000)
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>
src/log/log.go

index 26cdb532dfcacb88a65a2cfd1690cc357e17d4e2..58b8788be4a5c4ce865ba12a50d7a4b24433de02 100644 (file)
@@ -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