Browse Source

Merge pull request #122 from matrix-org/kegan/text-logging

Use a text formatter which logs as key=val instead of JSON
kegan/github-say-which-labels
Kegsay 8 years ago
committed by GitHub
parent
commit
bde6fb10df
  1. 7
      src/github.com/matrix-org/go-neb/goneb.go

7
src/github.com/matrix-org/go-neb/goneb.go

@ -227,7 +227,12 @@ func main() {
filepath.Join(e.LogDir, "info.log"),
filepath.Join(e.LogDir, "warn.log"),
filepath.Join(e.LogDir, "error.log"),
nil, &dugong.DailyRotationSchedule{GZip: true},
&log.TextFormatter{
TimestampFormat: "2006-01-02 15:04:05.000000",
DisableColors: true,
DisableTimestamp: false,
DisableSorting: false,
}, &dugong.DailyRotationSchedule{GZip: true},
))
}

Loading…
Cancel
Save