Log exceptions

It is now possible to use logging.exception(...) where the info is
transformed into "Type: message, arguments".