-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using go-logfmt/logfmt #91
Comments
cc @ChrisHines |
Benchmarks also fail to complete:
|
The four benchmarks that ran didn't show much better perf, but they might not be representative :( Master:
Best run on the branch:
|
To help performance you'll likely want to use a The use of "null" instead of "nil" for
What was the error message for the benchmark panic? I am having trouble figuring out what happened from the stack trace alone. |
@ChrisHines sorry - it's complaining that this leads to an invalid key:
I suppose I can edit the code to not attempt to encode an empty array. |
Er, never mind, it's complaining because the key is the empty string:
|
The other thing I think the old way supported was putting ANSI escape sequences in. I suppose we can hide the
|
Any chance we can put up a PR? Happy to help get this merged. Where are we specifying an empty string key? It seems reasonable for go-logfmt to panic on that. I'm not a big fan of go-logfmt formatting time.Time to 9 decimal places, but that's a thing we can fix on our side. Yeah, we use ANSI escape sequences for color formatting in the terminal format, so we'll need to figure that out. I much prefer |
I did some work to switch the
logfmt
code to use github.com/go-logfmt/logfmt. The following tests fail (usesnil
instead of null):and this one (formats the time.Time to 9 digits after the second, instead of to the second)
The diff is here: https://github.com/inconshreveable/log15/compare/master...kevinburke:use-logfmt?expand=1
The text was updated successfully, but these errors were encountered: