From 86d7d3a709c92b96e62cd12c2cacc30638c147a4 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 9 Apr 2018 08:25:43 +0200 Subject: [PATCH] -update: replace depricated GetCurrentClassLogger with GetLogger --- .../MethodHandlers/WebDavLockMethodHandler.cs | 2 +- .../MethodHandlers/WebDavPropfindMethodHandler.cs | 4 ++-- .../MethodHandlers/WebDavProppatchMethodHandler.cs | 2 +- .../Stores/DiskStore/WebDavDiskStoreItem.cs | 2 +- WebDavSharp_MVC/WebDAVSharp.Server/WebDavServer.cs | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/WebDavSharp_MVC/WebDAVSharp.Server/MethodHandlers/WebDavLockMethodHandler.cs b/WebDavSharp_MVC/WebDAVSharp.Server/MethodHandlers/WebDavLockMethodHandler.cs index 4950bde..1a065a3 100644 --- a/WebDavSharp_MVC/WebDAVSharp.Server/MethodHandlers/WebDavLockMethodHandler.cs +++ b/WebDavSharp_MVC/WebDAVSharp.Server/MethodHandlers/WebDavLockMethodHandler.cs @@ -41,7 +41,7 @@ namespace WebDAVSharp.Server.MethodHandlers { /// The that the is hosting. /// public void ProcessRequest(WebDavServer server, HttpContext context, IWebDavStore store, String fileName) { - ILog log = LogManager.GetCurrentClassLogger(); + ILog log = LogManager.GetLogger(); /*************************************************************************************************** * Retreive al the information from the request diff --git a/WebDavSharp_MVC/WebDAVSharp.Server/MethodHandlers/WebDavPropfindMethodHandler.cs b/WebDavSharp_MVC/WebDAVSharp.Server/MethodHandlers/WebDavPropfindMethodHandler.cs index 4eaa937..c5a74b6 100644 --- a/WebDavSharp_MVC/WebDAVSharp.Server/MethodHandlers/WebDavPropfindMethodHandler.cs +++ b/WebDavSharp_MVC/WebDAVSharp.Server/MethodHandlers/WebDavPropfindMethodHandler.cs @@ -42,7 +42,7 @@ namespace WebDAVSharp.Server.MethodHandlers { /// The that the is hosting. /// public void ProcessRequest(WebDavServer server, HttpContext context, IWebDavStore store, String fileName) { - _log = LogManager.GetCurrentClassLogger(); + _log = LogManager.GetLogger(); /*************************************************************************************************** * Retreive all the information from the request @@ -138,7 +138,7 @@ namespace WebDAVSharp.Server.MethodHandlers { /// /// private static List GetWebDavStoreItems(IWebDavStoreItem iWebDavStoreItem, int depth) { - ILog _log = LogManager.GetCurrentClassLogger(); + ILog _log = LogManager.GetLogger(); List list = new List(); //IWebDavStoreCollection diff --git a/WebDavSharp_MVC/WebDAVSharp.Server/MethodHandlers/WebDavProppatchMethodHandler.cs b/WebDavSharp_MVC/WebDAVSharp.Server/MethodHandlers/WebDavProppatchMethodHandler.cs index 9c97a66..3b0bb01 100644 --- a/WebDavSharp_MVC/WebDAVSharp.Server/MethodHandlers/WebDavProppatchMethodHandler.cs +++ b/WebDavSharp_MVC/WebDAVSharp.Server/MethodHandlers/WebDavProppatchMethodHandler.cs @@ -39,7 +39,7 @@ namespace WebDAVSharp.Server.MethodHandlers { /// objects to use. /// The that the is hosting. public void ProcessRequest(WebDavServer server, HttpContext context, IWebDavStore store, String fileName) { - ILog log = LogManager.GetCurrentClassLogger(); + ILog log = LogManager.GetLogger(); /*************************************************************************************************** * Retreive al the information from the request diff --git a/WebDavSharp_MVC/WebDAVSharp.Server/Stores/DiskStore/WebDavDiskStoreItem.cs b/WebDavSharp_MVC/WebDAVSharp.Server/Stores/DiskStore/WebDavDiskStoreItem.cs index d12ba55..99cc2f0 100644 --- a/WebDavSharp_MVC/WebDAVSharp.Server/Stores/DiskStore/WebDavDiskStoreItem.cs +++ b/WebDavSharp_MVC/WebDAVSharp.Server/Stores/DiskStore/WebDavDiskStoreItem.cs @@ -51,7 +51,7 @@ namespace WebDAVSharp.Server.Stores.DiskStore { //Identity = new WindowsIdentity() Identity = WindowsIdentity.GetCurrent(); - Log = LogManager.GetCurrentClassLogger(); + Log = LogManager.GetLogger(); } /// diff --git a/WebDavSharp_MVC/WebDAVSharp.Server/WebDavServer.cs b/WebDavSharp_MVC/WebDAVSharp.Server/WebDavServer.cs index 8eaa6f4..af03393 100644 --- a/WebDavSharp_MVC/WebDAVSharp.Server/WebDavServer.cs +++ b/WebDavSharp_MVC/WebDAVSharp.Server/WebDavServer.cs @@ -84,7 +84,7 @@ namespace WebDAVSharp.Server { methodHandler }; _methodHandlers = handlersWithNames.ToDictionary(v => v.name, v => v.methodHandler); - _log = LogManager.GetCurrentClassLogger(); + _log = LogManager.GetLogger(); } ///