From ee4b58df61e25bec2d526947dd76cd2ab5d3051d Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 20 Oct 2016 15:51:26 -0400 Subject: [PATCH] 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 --- src/log/log.go | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.48.1