@@ -43,7 +43,7 @@ protected override void OnTearDown()
4343 [ Test ]
4444 public void SaveOrUpdate_Save ( )
4545 {
46- using ( LogSpy ls = new LogSpy ( LogManager . GetLogger ( "NHibernate" ) , Level . Warn ) )
46+ using ( LogSpy ls = new LogSpy ( LogManager . GetLogger ( typeof ( AssignedFixture ) . Assembly , "NHibernate" ) , Level . Warn ) )
4747 using ( ISession s = OpenSession ( ) )
4848 {
4949 ITransaction t = s . BeginTransaction ( ) ;
@@ -70,7 +70,7 @@ public void SaveOrUpdate_Save()
7070 [ Test ]
7171 public void SaveNoWarning ( )
7272 {
73- using ( LogSpy ls = new LogSpy ( LogManager . GetLogger ( "NHibernate" ) , Level . Warn ) )
73+ using ( LogSpy ls = new LogSpy ( LogManager . GetLogger ( typeof ( AssignedFixture ) . Assembly , "NHibernate" ) , Level . Warn ) )
7474 using ( ISession s = OpenSession ( ) )
7575 {
7676 ITransaction t = s . BeginTransaction ( ) ;
@@ -104,7 +104,7 @@ public void SaveOrUpdate_Update()
104104 t . Commit ( ) ;
105105 }
106106
107- using ( LogSpy ls = new LogSpy ( LogManager . GetLogger ( "NHibernate" ) , Level . Warn ) )
107+ using ( LogSpy ls = new LogSpy ( LogManager . GetLogger ( typeof ( AssignedFixture ) . Assembly , "NHibernate" ) , Level . Warn ) )
108108 using ( ISession s = OpenSession ( ) )
109109 {
110110 ITransaction t = s . BeginTransaction ( ) ;
@@ -142,7 +142,7 @@ public void UpdateNoWarning()
142142 t . Commit ( ) ;
143143 }
144144
145- using ( LogSpy ls = new LogSpy ( LogManager . GetLogger ( "NHibernate" ) , Level . Warn ) )
145+ using ( LogSpy ls = new LogSpy ( LogManager . GetLogger ( typeof ( AssignedFixture ) . Assembly , "NHibernate" ) , Level . Warn ) )
146146 using ( ISession s = OpenSession ( ) )
147147 {
148148 ITransaction t = s . BeginTransaction ( ) ;
@@ -179,7 +179,7 @@ public void InsertCascade()
179179 t . Commit ( ) ;
180180 }
181181
182- using ( LogSpy ls = new LogSpy ( LogManager . GetLogger ( "NHibernate" ) , Level . Warn ) )
182+ using ( LogSpy ls = new LogSpy ( LogManager . GetLogger ( typeof ( AssignedFixture ) . Assembly , "NHibernate" ) , Level . Warn ) )
183183 using ( ISession s = OpenSession ( ) )
184184 {
185185 ITransaction t = s . BeginTransaction ( ) ;
@@ -218,7 +218,7 @@ public void InsertCascadeNoWarning()
218218 t . Commit ( ) ;
219219 }
220220
221- using ( LogSpy ls = new LogSpy ( LogManager . GetLogger ( "NHibernate" ) , Level . Warn ) )
221+ using ( LogSpy ls = new LogSpy ( LogManager . GetLogger ( typeof ( AssignedFixture ) . Assembly , "NHibernate" ) , Level . Warn ) )
222222 using ( ISession s = OpenSession ( ) )
223223 {
224224 ITransaction t = s . BeginTransaction ( ) ;
0 commit comments