Skip to content

Commit

Permalink
Add millisecond precision to logger
Browse files Browse the repository at this point in the history
Change-Id: I972debe01f5e0ff49f7b676f63c383d4d760f9ee
Signed-off-by: Kostas Christidis <kostas@christidis.io>
  • Loading branch information
kchristidis committed Oct 29, 2016
1 parent 865b0ed commit b4473da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orderer/kafka/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var logger *logging.Logger
func init() {
backend := logging.NewLogBackend(os.Stderr, "", 0)
logging.SetBackend(backend)
formatter := logging.MustStringFormatter("[%{time:15:04:05}] %{shortfile:18s}: %{color}[%{level:-5s}]%{color:reset} %{message}")
formatter := logging.MustStringFormatter("[%{time:15:04:05.000}] %{shortfile:18s}: %{color}[%{level:-5s}]%{color:reset} %{message}")
logging.SetFormatter(formatter)
logger = logging.MustGetLogger("orderer/kafka")
logging.SetLevel(logging.INFO, "") // Silence debug-level outputs when testing
Expand Down

0 comments on commit b4473da

Please sign in to comment.