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.
1 parent e230288 commit f4b1244Copy full SHA for f4b1244
src/NHibernate.Test/Log4netConfiguration.cs
src/NHibernate.Test/TestsContext.cs
@@ -1,5 +1,4 @@
1
using NUnit.Framework;
2
-using log4net;
3
using System.Configuration;
4
using NHibernate.Cfg;
5
@@ -23,8 +22,8 @@ public void RunBeforeAnyTests()
23
22
24
private static void ConfigureLog4Net()
25
{
26
- //Makes sure that logger is initialized from assembly configuration attribute (see Log4NetConfigurator)
27
- LogManager.GetRepository(typeof(TestsContext).Assembly);
+ using (var log4NetXml = typeof(TestsContext).Assembly.GetManifestResourceStream("NHibernate.Test.log4net.xml"))
+ log4net.Config.XmlConfigurator.Configure(log4NetXml);
28
}
29
30
0 commit comments