Branch: refs/heads/proposal-console-warn-rendering Home: https://github.com/xwiki/xwiki-commons Commit: adb19843667f6673be5df5ad7beadc011d136a26 https://github.com/xwiki/xwiki-commons/commit/adb19843667f6673be5df5ad7beadc... Author: Vincent Massol <[email protected]> Date: 2026-08-07 (Fri, 07 Aug 2026) Changed paths: M xwiki-commons-core/xwiki-commons-logging/xwiki-commons-logging-api/src/main/java/org/xwiki/logging/Logger.java M xwiki-commons-core/xwiki-commons-logging/xwiki-commons-logging-logback/src/main/java/org/xwiki/logging/logback/internal/LogbackEventGenerator.java A xwiki-commons-core/xwiki-commons-logging/xwiki-commons-logging-logback/src/main/java/org/xwiki/logging/logback/internal/XWikiThrowableConverter.java A xwiki-commons-core/xwiki-commons-logging/xwiki-commons-logging-logback/src/test/java/org/xwiki/logging/logback/internal/XWikiThrowableConverterTest.java Log Message: ----------- XCOMMONS-3738: Pass the exception to warn() and decide the stack trace display at rendering time * Add XWikiThrowableConverter, a Logback ThrowableHandlingConverter which renders only the root cause of the exception of a WARN event and the full stack trace for every other level, leaving the log event itself untouched so that the job log UI and any log collector still receive the whole exception * Allow restoring the full stack trace of warnings through the xwiki.logging.warn.stacktrace property, and for a subset of the code through a comma separated list of logger name prefixes, passed either as a conversion word option or as a Logback property * Add Logger.STACKTRACE_MARKER (xwiki.stacktrace) so that a call whose exception carries no information of its own and only records the call site, such as XWikiDocument#warnWithStackTrace, keeps its full stack trace * Read the markers of a Logback event through getMarkerList() rather than the deprecated getMarker(), which dropped all but the first marker on the way into LogEvent * Add unit tests, including one which registers the converter the way a <conversionRule> element in logback.xml does and runs it through a real PatternLayout Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-commons/settings/notifications