From 261679b031628e17369bda34947a7f5b85906184 Mon Sep 17 00:00:00 2001 From: RKrom Date: Mon, 22 Apr 2013 13:56:08 +0000 Subject: [PATCH] Fix to allow Greenshot to run as a portable App, installer will hopefully be made this week... git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2578 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- GreenshotPlugin/Core/LogHelper.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GreenshotPlugin/Core/LogHelper.cs b/GreenshotPlugin/Core/LogHelper.cs index fec9385e2..1502b1a7c 100644 --- a/GreenshotPlugin/Core/LogHelper.cs +++ b/GreenshotPlugin/Core/LogHelper.cs @@ -35,6 +35,7 @@ namespace GreenshotPlugin.Core { /// public class LogHelper { private const string LOG4NET_FILE = "log4net.xml"; + private const string LOG4NET_PORTABLE_FILE = "log4net-portable.xml"; private static bool isLog4NetConfigured = false; private const string INIT_MESSAGE = "Greenshot initialization of log system failed"; public static bool isInitialized { @@ -46,7 +47,7 @@ namespace GreenshotPlugin.Core { // Initialize Log4J public static string InitializeLog4NET() { // Setup log4j, currently the file is called log4net.xml - string pafLog4NetFilename = Path.Combine(Application.StartupPath, @"App\Greenshot\" + LOG4NET_FILE); + string pafLog4NetFilename = Path.Combine(Application.StartupPath, @"App\Greenshot\" + LOG4NET_PORTABLE_FILE); string log4netFilename = Path.Combine(Application.StartupPath, LOG4NET_FILE); if (File.Exists(log4netFilename)) {