-->
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.  [ 3 posts ] 
Author Message
 Post subject: System.Diagnostics logging versus Log4net
PostPosted: Wed Jan 04, 2006 2:47 pm 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
I noticed that as of .NET 2.0, the logging capabilities in System.Diagnostics look like they've gotten more robust. I'm wondering if Log4net will be replaced in favor of System.Diagnostics logging at some point?

IMHO, you should not have to call log4net.Config.XmlConfigurator.Configure() to enable logging, it should be on by default.


Top
 Profile  
 
 Post subject: Re: System.Diagnostics logging versus Log4net
PostPosted: Wed Jan 04, 2006 4:11 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
jemiller wrote:
I noticed that as of .NET 2.0, the logging capabilities in System.Diagnostics look like they've gotten more robust. I'm wondering if Log4net will be replaced in favor of System.Diagnostics logging at some point?


Once log4net begins to support it, you will be able to use it through log4net too.

jemiller wrote:
IMHO, you should not have to call log4net.Config.XmlConfigurator.Configure() to enable logging, it should be on by default.


A third-party library shouldn't mess with your application logging settings. XmlConfigurator is not the only way to configure logging in log4net.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 04, 2006 4:25 pm 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
I was able to configure Log4net to direct it's output to my System.Diagnostics trace log. That wasn't a problem. The question that I have is, why not just use what's built in if it's sufficiently robust than to have an additional dependency?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.