-
Questions
Context
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Yes, even if the error message fails to mention it, Log4j Core falls back to a default log event factory, if your custom factory is not available (cf. source code). If you want to prevent the message from appearing, you can bundle your custom Remark: a custom |
Beta Was this translation helpful? Give feedback.
-
|
Thank you very much for the answer @ppkarwasz! A custom |
Beta Was this translation helpful? Give feedback.
@skjelmo,
Yes, even if the error message fails to mention it, Log4j Core falls back to a default log event factory, if your custom factory is not available (cf. source code).
If you want to prevent the message from appearing, you can bundle your custom
LogEventFactorytogether with alog4j2.component.propertiescontaining:Remark: a custom
LogEventFactoryis not necessarily the best tool for the job, since it can not split events. You can split events with a customAppenderimplementation or you can limit the size of the stacktrace (each layout has a way to limit stacktraces).