I think there is a logging API for logging an exception. But I cold be wrong.