Add exception log method
Use pyqode.core.logger.exception for logging exceptions