ppkarwasz commented on code in PR #4163:
URL: https://github.com/apache/solr/pull/4163#discussion_r2855386367
##########
solr/benchmark/src/test-files/log4j2.xml:
##########
@@ -24,7 +24,7 @@
<PatternLayout>
<Pattern>
%maxLen{%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p (%t)
[%notEmpty{c:%X{collection}}%notEmpty{ s:%X{shard}}%notEmpty{
r:%X{replica}}%notEmpty{ x:%X{core}}] %c{1.}
- %m%notEmpty{ =>%ex{short}}}{10240}%n
+ %m}{10240}%n
Review Comment:
```suggestion
%m%n%ex}{10240}
```
If you add `%ex` explicitly, `PatternLayout` will not append it implicitly.
For Log4j 2.25.1 early, this change also requires setting the
[`alwaysWriteExceptions`
attribute](https://logging.apache.org/log4j/2.x/manual/pattern-layout.html#plugin-attr-alwaysWriteExceptions)
to false.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]