protected virtual void LogException(Exception exception, WebExceptionContext exceptionContext = null) { var message = new { exception = exception.Message, exceptionContext = exceptionContext, }; Log4NetHelper.Error(LoggerType.WebExceptionLog, message, exception); }