Migrate JsonFactoryDecorator to TokenStreamFactoryBuilderDecorator
ProprietaryMigrates classes that implement net.logstash.logback.decorate.JsonFactoryDecorator (removed in logstash-logback-encoder 9.0) to implement TokenStreamFactoryBuilderDecorator<JsonFactory, JsonFactoryBuilder>. The decorate(JsonFactory) method is rewritten to take and return a JsonFactoryBuilder, and mutator calls inside the body (e.g. setCharacterEscapes) are folded into the equivalent builder calls (e.g. characterEscapes) where a mapping is known. Unmapped mutators are kept by name with a TODO comment for manual review.
io. moderne. java. spring. boot4. MigrateJsonFactoryDecoratormod run . --recipe= io. moderne. java. spring. boot4. MigrateJsonFactoryDecoratorInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.