GitHub user ppkarwasz added a comment to the discussion: How do I register a StatusListener in configuration?
We could probably register status listeners automatically using `ServiceLoader`, which is in practice the only way to ensure that they are registered **before** `StatusLogger` is used for the first time. The behavior could be similar to a JUnit [`LauncherSessionListener`](https://junit.org/junit5/docs/current/user-guide/#launcher-api-launcher-session-listeners-custom). Of course for security reasons, there should also be a configuration property to turn on the auto-registration. Personally, I am open to a PR in this direction. GitHub link: https://github.com/apache/logging-log4j2/discussions/3576#discussioncomment-12644421 ---- This is an automatically sent email for dev@logging.apache.org. To unsubscribe, please send an email to: dev-unsubscr...@logging.apache.org