Log Stack Trace


Is it possible to log the stack trace to a file when I encounter “java.net.ConnectException: Cannot assign requested address” errors?

This is my current logback.xml, but I don’t seem to be getting a log file when I stop the test:

<?xml version="1.0" encoding="UTF-8"?> %d{HH:mm:ss.SSS} [%-5level] %logger{15} - %msg%n%rEx false

Many Thanks


Apologies, I do not have a FILE appender!