You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Debraj Manna <su...@gmail.com> on 2017/12/04 12:46:53 UTC

Validating if Exception is passed as last argument

Cross-posting from stackoverflow
<https://stackoverflow.com/questions/47633702/log4j-validating-if-exception-is-passed-as-last-argument>

As mentioned in SLF4J FAQ <https://www.slf4j.org/faq.html#paramException>

The SLF4J API supports parametrization in the presence of an exception,
> assuming the exception is the last parameter.


In a project is there a way to identify if exception is passed as a last
argument to all logger's method call (like error(), info())?