If I catch an exception, is there a way to produce a backtrace that I
can log using something like logger?