Edit after reading some more of the source:
You still need to subclass PatternLayout, but the method you want to override is ignoresThrowable(): it should return false, which will prevent the appender from writing the Throwable (it assumes that the layout has done so already).
No way to specify this in the configuration: PatternLayout has a hardcoded "return true".
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…