Set up proper logging (including stacktraces)