-update: replace depricated GetCurrentClassLogger with GetLogger<T>

This commit is contained in:
Michael Vesely 2018-04-09 08:25:43 +02:00
parent 3a6377fc3c
commit 86d7d3a709
5 changed files with 6 additions and 6 deletions

View File

@ -41,7 +41,7 @@ namespace WebDAVSharp.Server.MethodHandlers {
/// <param name="store">The <see cref="IWebDavStore" /> that the <see cref="WebDavServer" /> is hosting.</param>
/// <exception cref="WebDAVSharp.Server.Exceptions.WebDavPreconditionFailedException"></exception>
public void ProcessRequest(WebDavServer server, HttpContext context, IWebDavStore store, String fileName) {
ILog log = LogManager.GetCurrentClassLogger();
ILog log = LogManager.GetLogger<WebDavLockMethodHandler>();
/***************************************************************************************************
* Retreive al the information from the request

View File

@ -42,7 +42,7 @@ namespace WebDAVSharp.Server.MethodHandlers {
/// <param name="store">The <see cref="IWebDavStore" /> that the <see cref="WebDavServer" /> is hosting.</param>
/// <exception cref="WebDAVSharp.Server.Exceptions.WebDavUnauthorizedException"></exception>
public void ProcessRequest(WebDavServer server, HttpContext context, IWebDavStore store, String fileName) {
_log = LogManager.GetCurrentClassLogger();
_log = LogManager.GetLogger<WebDavPropfindMethodHandler>();
/***************************************************************************************************
* Retreive all the information from the request
@ -138,7 +138,7 @@ namespace WebDAVSharp.Server.MethodHandlers {
/// </returns>
/// <exception cref="WebDAVSharp.Server.Exceptions.WebDavConflictException"></exception>
private static List<IWebDavStoreItem> GetWebDavStoreItems(IWebDavStoreItem iWebDavStoreItem, int depth) {
ILog _log = LogManager.GetCurrentClassLogger();
ILog _log = LogManager.GetLogger<WebDavPropfindMethodHandler>();
List<IWebDavStoreItem> list = new List<IWebDavStoreItem>();
//IWebDavStoreCollection

View File

@ -39,7 +39,7 @@ namespace WebDAVSharp.Server.MethodHandlers {
/// objects to use.</param>
/// <param name="store">The <see cref="IWebDavStore" /> that the <see cref="WebDavServer" /> is hosting.</param>
public void ProcessRequest(WebDavServer server, HttpContext context, IWebDavStore store, String fileName) {
ILog log = LogManager.GetCurrentClassLogger();
ILog log = LogManager.GetLogger<WebDavProppatchMethodHandler>();
/***************************************************************************************************
* Retreive al the information from the request

View File

@ -51,7 +51,7 @@ namespace WebDAVSharp.Server.Stores.DiskStore {
//Identity = new WindowsIdentity()
Identity = WindowsIdentity.GetCurrent();
Log = LogManager.GetCurrentClassLogger();
Log = LogManager.GetLogger<WebDavDiskStoreItem>();
}
/// <summary>

View File

@ -84,7 +84,7 @@ namespace WebDAVSharp.Server {
methodHandler
};
_methodHandlers = handlersWithNames.ToDictionary(v => v.name, v => v.methodHandler);
_log = LogManager.GetCurrentClassLogger();
_log = LogManager.GetLogger<WebDavServer>();
}
/// <summary>