New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change SimpleLayout to be immutable #5225
Labels
breaking change
Breaking API change (different to semantic change)
Milestone
Comments
snakefoot
added
the
breaking change
Breaking API change (different to semantic change)
label
May 21, 2023
Notice there is a hurdle with handling dynamic assignment of <layout xsi:type="LayoutWithHeaderAndFooter">
<header xsi:type="SimpleLayout" text="<?xml version="1.0" encoding="utf-8" ?><root xmlns:log4j="http://jakarta.apache.org/log4j/">"/>
<layout xsi:type="Log4JXmlEventLayout" />
<footer xsi:type="SimpleLayout" text="</root>"/>
</layout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remove the Text-property-setter, and the ConfigurationItemFactory-instance-field.
This will allow one to create SimpleLayout without involving the ConfigurationItemFactory.
Introduce fluent-api for creating SimpleLayout from chain of layoutrenderers (skip parsing and reflection-logic)
The text was updated successfully, but these errors were encountered: