diff --git a/Greenshot/Helpers/EnvironmentInfo.cs b/Greenshot/Helpers/EnvironmentInfo.cs index 3f3e19c24..1ba2322b6 100644 --- a/Greenshot/Helpers/EnvironmentInfo.cs +++ b/Greenshot/Helpers/EnvironmentInfo.cs @@ -34,7 +34,7 @@ namespace Greenshot.Helpers { /// Description of EnvironmentInfo. /// public static class EnvironmentInfo { - private static readonly log4net.ILog LOG = log4net.LogManager.GetLogger("Greenshot"); + private static readonly log4net.ILog LOG = log4net.LogManager.GetLogger(typeof(EnvironmentInfo)); private static bool? isWindows = null; public static bool IsWindows { diff --git a/GreenshotPlugin/Core/Cache.cs b/GreenshotPlugin/Core/Cache.cs index 8cfa8c4ba..e481c40a4 100644 --- a/GreenshotPlugin/Core/Cache.cs +++ b/GreenshotPlugin/Core/Cache.cs @@ -29,7 +29,7 @@ namespace GreenshotPlugin.Core { /// Type of key /// Type of value public class Cache { - private static readonly log4net.ILog LOG = log4net.LogManager.GetLogger("Cache"); + private static readonly log4net.ILog LOG = log4net.LogManager.GetLogger(typeof(Cache)); private IDictionary internalCache = new Dictionary(); private object lockObject = new object(); private int secondsToExpire = 10; diff --git a/GreenshotPlugin/Core/EncryptionHelper.cs b/GreenshotPlugin/Core/EncryptionHelper.cs index 88abbf860..54bf43f28 100644 --- a/GreenshotPlugin/Core/EncryptionHelper.cs +++ b/GreenshotPlugin/Core/EncryptionHelper.cs @@ -25,7 +25,7 @@ using System.Text; namespace GreenshotPlugin.Core { public static class EncryptionHelper { - private static readonly log4net.ILog LOG = log4net.LogManager.GetLogger("EncryptionHelper"); + private static readonly log4net.ILog LOG = log4net.LogManager.GetLogger(typeof(EncryptionHelper)); private const string RGBIV = "dlgjowejgogkklwj"; private const string KEY = "lsjvkwhvwujkagfauguwcsjgu2wueuff";