You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "vy (via GitHub)" <gi...@apache.org> on 2025/03/02 15:29:47 UTC

Re: [I] `PropertiesConfigurationBuilder` throws instead of returning `null` [logging-log4j2]

vy commented on issue #3088:
URL: https://github.com/apache/logging-log4j2/issues/3088#issuecomment-2692782724

   As @rgoers stated in [this Slack post](https://the-asf.slack.com/archives/C4TQW0M5L/p1739878787097369?thread_ts=1739876477.150569&cid=C4TQW0M5L)
   
   > Failure during configuration should be caught and cause the previous configuration to remain intact.
   
   In short, we shouldn't have partially applied configurations. I suggest following [the design I shared in the comment above](https://github.com/apache/logging-log4j2/issues/3088#issuecomment-2671827292): throwing exceptions in component initialization failures, and catching them in `ConfigurationBuilder::build` methods.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org