-
Notifications
You must be signed in to change notification settings - Fork 22
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
Justify slog's existence #53
Conversation
ecdcf59
to
845b030
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice writeup
README.md
Outdated
We wanted an API that only accepted the equivalent of [zap.Any](https://godoc.org/go.uber.org/zap#Any) for every field. | ||
This is [slog.F](https://godoc.org/cdr.dev/slog#F). | ||
|
||
Second, we found the human readable format to be hard to read due to the lack appropriate colors for different levels |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Second, we found the human readable format to be hard to read due to the lack appropriate colors for different levels | |
Second, we found the human readable format to be hard to read due to the lack of appropriate colors for different levels |
README.md
Outdated
instead. We wanted it to be automatic, even for private fields. slog handles this transparently for us. It will automatically | ||
log Go structures with their fields separate, including private fields. | ||
|
||
Seventh, t.Helper style APIf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seventh, t.Helper style APIf | |
Seventh, t.Helper style API |
README.md
Outdated
|
||
Seventh, t.Helper style APIf | ||
|
||
Eight, tighter integration with `*testing.T`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eight, tighter integration with `*testing.T`. | |
Eighth, tighter integration with `*testing.T`. |
Closes #6
Closes #34