Home All Groups Group Topic Archive Search About

Logging in vs 2005 and .Net 2

Author
15 Feb 2006 7:26 PM
Sam B
What are you using for logging in .Net 2.0?

I can't find a lot of documentation on this.

Log4net, maybe, or Enterprise Library - (but it seems overkill to use the EL
when all I want from it is the logging).

Or is there enough funtionality in the .Net 2.0 framework to do without
log4net or EL?

I'm leaning towards log4net.  .Net 2.0 doesn't seem to support rolling flat
files.

Author
15 Feb 2006 7:43 PM
Gabriel Magaña
I just wrote my own...  It's really simple to do (rolling log files,
archiving automatically, etc...).

Show quote
"Sam B" <s**@sadas.com> wrote in message
news:OoIYnXmMGHA.3100@tk2msftngp13.phx.gbl...
> What are you using for logging in .Net 2.0?
>
> I can't find a lot of documentation on this.
>
> Log4net, maybe, or Enterprise Library - (but it seems overkill to use the
> EL
> when all I want from it is the logging).
>
> Or is there enough funtionality in the .Net 2.0 framework to do without
> log4net or EL?
>
> I'm leaning towards log4net.  .Net 2.0 doesn't seem to support rolling
> flat
> files.
>
>
Author
15 Feb 2006 7:46 PM
Michael Nemtsev
We use custom class derived from TraceListener, to log in XML format
Look at TraceListener, you find that u need.
Moreover, look at TraceSwitch class.

By the way, log4ner realy neat tool

Show quote
> What are you using for logging in .Net 2.0?
> I can't find a lot of documentation on this.
> Log4net, maybe, or Enterprise Library - (but it seems overkill to use the EL
> when all I want from it is the logging).
> Or is there enough funtionality in the .Net 2.0 framework to do without
> log4net or EL?
> I'm leaning towards log4net.  .Net 2.0 doesn't seem to support rolling flat
> files.

--
WBR,
Michael  Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

AddThis Social Bookmark Button