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
_______________________________________________
Logback-user mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-user

Reply via email to