protected virtual ExceptionState LogError(IInvocation invocation, Exception error)
 {
     ILog log = _logFactory(invocation.TargetType);
     log.Info(handler => handler(LoggingResources.MethodInfoFormat, invocation.Method.Name, LoggingResources.MethodInfoFail));
     log.Error(handler => handler(LoggingResources.ExceptionErrorFormat, invocation.Method.Name, error.ToFullString()));
     return new ExceptionState(error, _config.TrapExceptions);
 }
示例#2
0
 private void ShowError(Exception ex)
 {
     ShowError(ex.ToFullString());
 }