question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide structured logging format for DebuggingFilters.*

See original GitHub issue

Structured 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:closed
  • Created 4 years ago
  • Comments:18 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
daviddentoncommented, Sep 17, 2019

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

1reaction
daviddentoncommented, Sep 13, 2019

This is the kind of thing I was going for. Basically we introduce an EventsFilter which will allow you to add metadata to an Event and finally log it in structured format using an implementation of Events 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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found