-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
 Post subject: New log4net version
PostPosted: Tue May 17, 2005 2:14 pm 
Expert
Expert

Joined: Fri May 13, 2005 11:13 am
Posts: 292
Location: Rochester, NY
I notice that NH is still using 1.2.0 beta 8, but there is a newer version, 1.2.9 beta. It still isn't a "release" version, but there are many new features, and a whole lot of bug fixes. This is also the first release under their Apache partnership (I'm not really sure if that means anything).

I don't think it would involve very many code changes, though it may be a breaking change for some consumers, especially if they've built custom appenders.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 19, 2005 12:06 am 
Newbie

Joined: Fri May 13, 2005 7:46 pm
Posts: 17
Seconded! We use a custom build of NHibernate at work just so we could use 1.2.9 (it's a drop-in replacement if you ignore the DOMConfigurator warnings).

We had to have 1.2.9's ConfigurationReset event for our custom appender, so we can't really do without it. It'd be convenient if we didn't have to use a custom build of NHibernate, the only difference being the log4net version used, but it's a minor nuiscance, so I'm not complaining too loudly. :)


Top
 Profile  
 
 Post subject: what changes?
PostPosted: Tue May 24, 2005 6:16 pm 
Regular
Regular

Joined: Tue May 24, 2005 12:55 pm
Posts: 56
What kind of changes were needed to use the 1.2.9 version? We set the config via DOMConfigurator.Configure(), so I wonder if all would be good if we dropped in the new version and used XmlConfigurator instead.?

It is really annoying to read the log4net docs only to find out after 10 minutes of work that you are working with a 1.2.9 feature/fix which isn't available in NH.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 25, 2005 2:21 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Added NH-286 for log4net.


Top
 Profile  
 
 Post subject: Re: what changes?
PostPosted: Thu May 26, 2005 12:34 am 
Newbie

Joined: Fri May 13, 2005 7:46 pm
Posts: 17
tinomen wrote:
What kind of changes were needed to use the 1.2.9 version? We set the config via DOMConfigurator.Configure(), so I wonder if all would be good if we dropped in the new version and used XmlConfigurator instead.?


I use App/Web.config to setup the loggers, so I can't promise anything, but like I said, for us it's a drop-in replacement. DOMConfigurator is still in 1.2.9, it just wraps XmlConfigurator now while it's (DOMConfigurator) being deprecated.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 08, 2005 4:58 pm 
Would you consider attempting this move for 0.9 beta?

Thanks!
-MT


Top
  
 
 Post subject:
PostPosted: Wed Jun 08, 2005 5:25 pm 
Beginner
Beginner

Joined: Wed Jun 08, 2005 4:59 pm
Posts: 27
Btw, if this matters to you, you should probably vote on the task (linked above).

-MT


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 14, 2005 4:53 am 
ssmoot wrote:
Seconded! We use a custom build of NHibernate at work just so we could use 1.2.9 (it's a drop-in replacement if you ignore the DOMConfigurator warnings).


You dont need to use custom build of NHibernate. Because Log4net 1.2.9 is drop-in replacement, NHibernate works with it without any problems. Just need to redirect assembly binder to use different version of log4net assembly. Add following to your application configuration file:
Code:
<runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
         <dependentAssembly>
            <assemblyIdentity name="log4net"               
                              publicKeyToken="b32731d11ce58905"
                              culture="neutral" />
           <bindingRedirect oldVersion="1.2.0.30714"
                        newVersion="1.2.9.0"/>
         </dependentAssembly>
      </assemblyBinding>
   </runtime>


Bye


Top
  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.