Suppose I have this Java code: try { // ... } catch (Exception ex) { logger.error("Something went wrong", ex); } I want to choose at runtime if a specific Logger should log the exception's stacktrace or just its message. Is this possible with Logback? Thanks in advance, Daniel Serodio