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.

Dynamic custom formatters

See original GitHub issue

It might be nice to allow for custom formatters to be developed without the need to fork the repository. Currently, if you want to develop a custom formatter, the main repository needs to be forked and re-built after adding the new formatter to Format.java

For instance: https://github.com/billcrook/redis-rdb-cli/commit/b3cce93b85322ffe3d34951364fc9cfe9ac8996c#diff-2133dffbf4513d74abdacb9132f74a312f6775830f0763a67c83098c25fc06edR78

An alternative approach might be to allow for dynamic formatters at the command line using a fully qualified path to the new formatter. For instance: rct -f com.company.rdb.MyAwesomeFormatter ...

MyAwesomeFormatter could be part of a new jar that is placed in the classpath.

Thanks again for the great tool. I’ve been using it successfully in production for a number of months now - parsing many gigabytes of rdb files every day.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
leonchen83commented, Nov 8, 2020

@billcrook fixed download v0.5.0

1reaction
leonchen83commented, Nov 2, 2020

@billcrook refer to implement formatter service this API not only for json format, you can define your own output format. so I can’t add emitZSetJson , emitString method to this API. also can’t change visibility from private to protected . you could copy these methods to your own formatter class.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to handle dynamic format specifiers in ... - GitHub
I am currently implementing an fmt-based formatter for the Eigen library since the original one uses ostreams and requires to build a ...
Read more >
Add Dynamic custom variable in logging Formatter Django ...
The way this is typically done is by defining a custom Formatter and injecting your data, in your case the ID, into the...
Read more >
Dynamic Annotations Using Custom Number Formatting in Excel
Excel's number formatting syntax consists of different individual number formats separated by semicolons. By default, the syntax to the left ...
Read more >
ASP.NET Dynamic Data Custom Form Formatting
In this video you will gain some insight on how you can configure the visual aesthetics of a Dynamic Data application down to...
Read more >
Print today's date in a custom format - Dynamic.ooo - Addons
Print today's date in a custom format. TOKEN. [date|Y m d]. Facebook-f Twitter Instagram Youtube. Made with in Venice – Italy.
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