Log4net
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user