Logging Exceptions with SLF4J

December 2020

Exception logging in SLF4J works without including it in the format:

logger.error("An exception occured", new Exception("my exception"));

As opposed to the {} format notation.

--- ---