mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
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
This commit is contained in:
parent
791140101a
commit
261679b031
1 changed files with 2 additions and 1 deletions
|
@ -35,6 +35,7 @@ namespace GreenshotPlugin.Core {
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class LogHelper {
|
public class LogHelper {
|
||||||
private const string LOG4NET_FILE = "log4net.xml";
|
private const string LOG4NET_FILE = "log4net.xml";
|
||||||
|
private const string LOG4NET_PORTABLE_FILE = "log4net-portable.xml";
|
||||||
private static bool isLog4NetConfigured = false;
|
private static bool isLog4NetConfigured = false;
|
||||||
private const string INIT_MESSAGE = "Greenshot initialization of log system failed";
|
private const string INIT_MESSAGE = "Greenshot initialization of log system failed";
|
||||||
public static bool isInitialized {
|
public static bool isInitialized {
|
||||||
|
@ -46,7 +47,7 @@ namespace GreenshotPlugin.Core {
|
||||||
// Initialize Log4J
|
// Initialize Log4J
|
||||||
public static string InitializeLog4NET() {
|
public static string InitializeLog4NET() {
|
||||||
// Setup log4j, currently the file is called log4net.xml
|
// 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);
|
string log4netFilename = Path.Combine(Application.StartupPath, LOG4NET_FILE);
|
||||||
|
|
||||||
if (File.Exists(log4netFilename)) {
|
if (File.Exists(log4netFilename)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue