From ca73e3a673a6f009cfeb6b151bafa69683127994 Mon Sep 17 00:00:00 2001 From: RKrom Date: Thu, 8 Nov 2012 17:03:46 +0000 Subject: [PATCH] Fixed LogManager access to use non strings, this prevents future refactoring problems. git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2257 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- Greenshot/Helpers/EnvironmentInfo.cs | 2 +- GreenshotPlugin/Core/Cache.cs | 2 +- GreenshotPlugin/Core/EncryptionHelper.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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";