Modified loggers to use their enclosing class
[pithos-ms-client] / trunk / Pithos.ShellExtensions / Menus / FileContextMenu.cs
index 735d1bc..5e30019 100644 (file)
@@ -46,6 +46,7 @@ using System.Diagnostics;
 using System.Diagnostics.Contracts;
 using System.Drawing;
 using System.Linq;
+using System.Reflection;
 using System.Runtime.InteropServices;
 using System.Runtime.InteropServices.ComTypes;
 using System.Text;
@@ -58,7 +59,7 @@ namespace Pithos.ShellExtensions.Menus
     [Guid("B1F1405D-94A1-4692-B72F-FC8CAF8B8700"), ComVisible(true)]
     public class FileContextMenu : IShellExtInit, IContextMenu
     {
-        private static readonly log4net.ILog Log = log4net.LogManager.GetLogger("Pithos.FileContextMenu");
+        private static readonly log4net.ILog Log = log4net.LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
 
         private const string MenuHandlername = "Pithos.FileContextMenu";