Log exception stack trace.