]> Cypherpunks repositories - gostls13.git/commit
log: add Lmsgprefix flag
authorTim Cooper <tim.cooper@layeh.com>
Mon, 15 Jul 2019 22:54:23 +0000 (17:54 -0500)
committerRob Pike <r@golang.org>
Fri, 13 Sep 2019 23:21:54 +0000 (23:21 +0000)
commit8cc57c0ccc882a06352e6ad73cb7c281d34be3ef
tree2ba7f4842feb71b5f1508b87403e1050f9cf2a90
parent24781a1faf62ac5c9a553af6f46b787e972f5539
log: add Lmsgprefix flag

The Lmsgprefix flag moves the logger's prefix from the
beginning of the line to after the log header. For example,
a logger with the prefix "LOG " and LstdFlags would output:

    LOG 2009/11/10 23:00:00 entry text

Adding the Lmsgprefix flag would output:

    2009/11/10 23:00:00 LOG entry text

Fixes #32062

Change-Id: I9f7c9739abeb53c424112aaeed33444eeefdfbbc
Reviewed-on: https://go-review.googlesource.com/c/go/+/186182
Run-TryBot: Rob Pike <r@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/log/log.go
src/log/log_test.go