mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 05:23:24 -07:00
Added logic which forces the greenshot.ini to be created in the startup-path (where the executable is) when there is no log4net.xml available. This is useful when someone just wants to use the greenshot.exe
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1607 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
89c2b7a9e7
commit
83570e855b
4 changed files with 28 additions and 5 deletions
|
@ -23,6 +23,7 @@ using System.IO;
|
|||
using System.Reflection;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using IniFile;
|
||||
using log4net;
|
||||
using log4net.Appender;
|
||||
using log4net.Config;
|
||||
|
@ -58,6 +59,7 @@ namespace GreenshotPlugin.Core {
|
|||
using (Stream stream = assem.GetManifestResourceStream("GreenshotPlugin.log4net-embedded.xml")) {
|
||||
XmlConfigurator.Configure(stream);
|
||||
isLog4NetConfigured = true;
|
||||
IniConfig.ForceIniInStartupPath();
|
||||
}
|
||||
} catch {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue