[MonoDevelop] log4net logging patch

Jaroslaw Kowalski jaak@zd.com.pl
Sat, 2 Apr 2005 05:56:09 +0200


Hi!

I've looked into the patch and I'm worried about the performance. You seem 
to be using new StackTrace on each and every method just to get the calling 
type name. This is going to be huge performance hit, especially in a tight 
loop.

You may also want to look at NLog (http://nlog.sourceforge.net). It is an 
easy-to-use log4net alternative that directly supports formatted logging. 
Mono is supported and the library provides out-of-the box binary 
compatibility for many platforms (no recompile required!). And it's pretty 
fast (it can filter more than 100 million logs per second on my Centrino 1.6 
laptop).

NLog is BSD-licensed.

Jarek

http://blog.jkowalski.net/ - my blog about NLog, Sooda and other things.

----- Original Message ----- 
From: "John Luke" <john.luke@gmail.com>
To: "Christian Hergert" <christian.hergert@gmail.com>
Cc: <monodevelop-list@lists.ximian.com>
Sent: Saturday, April 02, 2005 3:43 AM
Subject: Re: [MonoDevelop] log4net logging patch


> On Fri, 2005-04-01 at 16:29 -0800, Christian Hergert wrote:
>> Attached is a diff patch for the logging service. It does not include
>> the log4net dll, so if you want to use it, put log4net.dll in
>> contrib/. You can get the log4net build from logging.apache.org.
>
> Looks alright to me except for some quibbles (some not really specific
> to your patch).
>
> We probably don't want to log/print translated messages
>
> Since you have the *Format ones maybe go ahead and use them even though
> the previous WriteLines didn't
>
> in Core/src/MonoDevelop.Base/Makefile.am:
> -assembly_DATA = $(ASSEMBLY) $(CONFIG)
> +assembly_DATA = $(ASSEMBLY) $(CONFIG)
> $(top_builddir)/contrib/log4net.dll
>
> probably should be moved into contrib/Makefile.am
> Which makes me ask why don't we import the source and build it?
> It is not real large is it?
>
> typo in Core/src/MonoDevelop.Startup/Makefile.am:
> the app.config should get installed
> +assembly_DATA = $(DLL) $
>
> last make sure we are meeting their license correctly please (part 4 in
> particular). I think a COPYING.log4net and a blurb in the README should
> do.
>
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>