rgoers commented on issue #3433: URL: https://github.com/apache/logging-log4j2/issues/3433#issuecomment-2723912447
First, I have to ask some obvious questions. 1. Why isn't your first thought to recommend changing this to ``` logger.error("Doing this thing failed. Context Id: {}, SomeSettings: {}", context.id, someSetting, ex); ``` 2. Assuming for some reason they didn't want the first 3 log lines what would you tell someone who just did ``` logger.error(ex); ``` If I saw that I would tell them to add some descriptive text to describe what was being attempted. A stack trace with no other info is a software engineers nightmare. to be honest, I would very close to doing: ``` if (obj instanceof Throwable) { LOGGER.warn("You need new software engineers"); } ``` and then ignoring the event. -- 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-unsubscr...@logging.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org