Exception logger: add public method log.