2

I am using LogBack for Android to log into a file on the public external storage of the device.

When my application crashes, I want the log file to contain the Exception and the stack trace.

How do I configure this?

Thank you.

MartinCz
  • 528
  • 4
  • 13

1 Answers1

3

Just take a look at the following thread, I think that's exactly what you need: Need to handle uncaught exception and send log file

Community
  • 1
  • 1
MarkySmarky
  • 1,609
  • 14
  • 17
  • Perfect. I will be using a handler like this: `private void handleUncaughtException(Thread thread, Throwable e) { LOG.error("Application crashed with the following exception.", e); System.exit(1); }` – MartinCz Jul 26 '15 at 08:31