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
This commit is contained in:
RKrom 2012-11-08 17:03:46 +00:00
parent 9b766ebe88
commit ca73e3a673
3 changed files with 3 additions and 3 deletions

View file

@ -34,7 +34,7 @@ namespace Greenshot.Helpers {
/// Description of EnvironmentInfo. /// Description of EnvironmentInfo.
/// </summary> /// </summary>
public static class 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; private static bool? isWindows = null;
public static bool IsWindows { public static bool IsWindows {

View file

@ -29,7 +29,7 @@ namespace GreenshotPlugin.Core {
/// <typeparam name="TK">Type of key</typeparam> /// <typeparam name="TK">Type of key</typeparam>
/// <typeparam name="TV">Type of value</typeparam> /// <typeparam name="TV">Type of value</typeparam>
public class Cache<TK, TV> { public class Cache<TK, TV> {
private static readonly log4net.ILog LOG = log4net.LogManager.GetLogger("Cache"); private static readonly log4net.ILog LOG = log4net.LogManager.GetLogger(typeof(Cache<TK, TV>));
private IDictionary<TK, TV> internalCache = new Dictionary<TK, TV>(); private IDictionary<TK, TV> internalCache = new Dictionary<TK, TV>();
private object lockObject = new object(); private object lockObject = new object();
private int secondsToExpire = 10; private int secondsToExpire = 10;

View file

@ -25,7 +25,7 @@ using System.Text;
namespace GreenshotPlugin.Core { namespace GreenshotPlugin.Core {
public static class EncryptionHelper { 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 RGBIV = "dlgjowejgogkklwj";
private const string KEY = "lsjvkwhvwujkagfauguwcsjgu2wueuff"; private const string KEY = "lsjvkwhvwujkagfauguwcsjgu2wueuff";