This commit is contained in:
2026-03-05 13:03:16 +01:00
parent 49a745b936
commit eb2d3d2fcc
7 changed files with 26 additions and 14 deletions

View File

@@ -1,4 +1,6 @@
using BeWo.Service.Core;
using DevExpress.CodeParser.Diagnostics;
using log4net;
using System;
using System.Collections.Generic;
using System.Configuration;
@@ -17,6 +19,8 @@ namespace BeWo.Service.ServiceBehavior.WCFError
{
public class WCFErrorHandler : IErrorHandler
{
private static readonly log4net.ILog log = ServiceLogger.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
public bool HandleError(Exception exception)
{
return true;
@@ -25,7 +29,7 @@ namespace BeWo.Service.ServiceBehavior.WCFError
public void ProvideFault(Exception error, MessageVersion version, ref Message message)
{
// Logge in File
ServiceLogger.WCFErrorLogger.LogError(error);
log.Error(error);
var wcfError = Utils.CreateBeWoFaultException(error);