Example #1
0
        protected virtual void LogException(Exception exception, WebExceptionContext exceptionContext = null)
        {
            var message = new
            {
                exception        = exception.Message,
                exceptionContext = exceptionContext,
            };

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