Skip to content

Commit

Permalink
Add date and timezone to peer logging formatter
Browse files Browse the repository at this point in the history
Change-Id: Ic57436749e2029af325fa17326e13a17f89d269d
Signed-off-by: Will Lahti <wtlahti@us.ibm.com>
  • Loading branch information
wlahti committed Dec 6, 2016
1 parent cfdaf0c commit b2b9ab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flogging/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func DefaultLoggingLevel() logging.Level {
func init() {

format := logging.MustStringFormatter(
"%{color}%{time:15:04:05.000} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message}",
"%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message}",
)

backend := logging.NewLogBackend(os.Stderr, "", 0)
Expand Down

0 comments on commit b2b9ab2

Please sign in to comment.