We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d229631 + 18551d4 commit 8692a59Copy full SHA for 8692a59
src/NHibernate/Logging.cs
@@ -87,7 +87,7 @@ private static string GetNhibernateLoggerClass()
87
string binPath = relativeSearchPath == null ? baseDir : Path.Combine(baseDir, relativeSearchPath);
88
string log4NetDllPath = binPath == null ? "log4net.dll" : Path.Combine(binPath, "log4net.dll");
89
90
- if (File.Exists(log4NetDllPath))
+ if (File.Exists(log4NetDllPath) || AppDomain.CurrentDomain.GetAssemblies().Any(a => a.GetName().Name == "log4net"))
91
{
92
nhibernateLoggerClass = typeof (Log4NetLoggerFactory).AssemblyQualifiedName;
93
}
0 commit comments