Adapted the logger to custom exception(s).