enable terminal color

pull/8/head
Richard Liu 7 years ago
parent 2467a7c600
commit 08982d40ed
  1. 2
      log/root.go

@ -7,7 +7,7 @@ import (
var ( var (
root = &logger{[]interface{}{}, new(swapHandler)} root = &logger{[]interface{}{}, new(swapHandler)}
// StdoutHandler handles stdout // StdoutHandler handles stdout
StdoutHandler = StreamHandler(os.Stdout, LogfmtFormat()) StdoutHandler = StreamHandler(os.Stdout, TerminalFormat(true))
// StderrHandler handles stderr // StderrHandler handles stderr
StderrHandler = StreamHandler(os.Stderr, LogfmtFormat()) StderrHandler = StreamHandler(os.Stderr, LogfmtFormat())
) )

Loading…
Cancel
Save