Skip to content

Commit 8692a59

Browse files
committed
Merge branch 'whut-NH-2821'
2 parents d229631 + 18551d4 commit 8692a59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate/Logging.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ private static string GetNhibernateLoggerClass()
8787
string binPath = relativeSearchPath == null ? baseDir : Path.Combine(baseDir, relativeSearchPath);
8888
string log4NetDllPath = binPath == null ? "log4net.dll" : Path.Combine(binPath, "log4net.dll");
8989

90-
if (File.Exists(log4NetDllPath))
90+
if (File.Exists(log4NetDllPath) || AppDomain.CurrentDomain.GetAssemblies().Any(a => a.GetName().Name == "log4net"))
9191
{
9292
nhibernateLoggerClass = typeof (Log4NetLoggerFactory).AssemblyQualifiedName;
9393
}

0 commit comments

Comments
 (0)