From: Russ Cox Date: Thu, 20 Oct 2016 19:51:26 +0000 (-0400) Subject: log: document that log messages end in newlines X-Git-Tag: go1.8beta1~692 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ee4b58df61e25bec2d526947dd76cd2ab5d3051d;p=gostls13.git 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 TryBot-Result: Gobot Gobot Reviewed-by: Quentin Smith --- 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