Provide structured logging format for DebuggingFilters.*
See original GitHub issueStructured logging is useful for a number of reasons. It makes it easier to parse logs using a tool that understands either key=value
or json
structures.
Allow configuring the output format for easier integration with tools like Stackdriver.
Issue Analytics
- State:
- Created 4 years ago
- Comments:18 (11 by maintainers)
Top Results From Across the Web
What Is Structured Logging and How to Use It - Loggly
Structured logging makes this easier by generating logs in more easily parsable formats—such as JSON and XML. This way, you can treat your...
Read more >Structured logging - Google Cloud
This document discusses the concept of structured logging and the methods for adding structure to log entry payload fields.
Read more >What Is Structured Logging and Why Developers Need It
The goal of structured logging is to bring a more defined format and details to your logging. We have been practicing structured logging...
Read more >Structured Logging: Definition, Format, Benefits, and More
Structured Logging is the process of giving application logs a standardized, predetermined message format that enables them to be handled as ...
Read more >Structured logging in Python | New Relic
log file. Logging useful information. The example messages above are very simplistic and won't provide enough data for a real-world application.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
EventsFilters and Http Filters are composed to create entirely different stacks. Have a look at this Gist which shows the 2 things being used together: https://gist.github.com/daviddenton/2c09ecf11fce518083da3667dd1ab0cb
This is the kind of thing I was going for. Basically we introduce an
EventsFilter
which will allow you to add metadata to anEvent
and finally log it in structured format using an implementation ofEvents
which converts the class structure to JSON and dumps it to std out.Check it out and let me know if you think it would work for you… https://github.com/http4k/http4k/tree/events