Personally, I think you can make your life easier by not trying to replace
JsonLayout. Then you don’t have to worry about backward compatibility.
Alternatively, you could replace JsonLayout with a builder that uses the
existing configuration elements but creates your new Layout. If you do that
While replacing JsonLayout, I am a little bit puzzled by a certain issue,
which I will try to exemplify below:
LogstashLayout.Builder contains
- @PluginBuilderAttribute("prettyPrint") boolean prettyPrintEnabled;
- void isPrettyPrintEnabled()
- Builder setPrettyPrintEnabled(boolean prettyPrintEnabl