add stack trace of logged exceptions to log file