mirror of
https://github.com/greenshot/greenshot
synced 2025-07-14 00:53:51 -07:00
Changed InitializeLog4NET to return the first file appender from a list of appenders, instead of assuming that the first is the file appender.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2163 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
e63d81e0fe
commit
1abbf03dba
1 changed files with 4 additions and 3 deletions
|
@ -75,9 +75,10 @@ namespace GreenshotPlugin.Core {
|
||||||
// Get the logfile name
|
// Get the logfile name
|
||||||
try {
|
try {
|
||||||
if (((Hierarchy)LogManager.GetRepository()).Root.Appenders.Count > 0) {
|
if (((Hierarchy)LogManager.GetRepository()).Root.Appenders.Count > 0) {
|
||||||
IAppender appender = ((Hierarchy)LogManager.GetRepository()).Root.Appenders[0];
|
foreach (IAppender appender in ((Hierarchy)LogManager.GetRepository()).Root.Appenders) {
|
||||||
if (appender is FileAppender) {
|
if (appender is FileAppender) {
|
||||||
return ((FileAppender)appender).File;
|
return ((FileAppender)appender).File;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch {}
|
} catch {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue