Re: C# log component



The bank where I work as a software architect uses Log4Net extensively and it's very reliable and simple to use.

--
--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.


"Morten Wennevik [C# MVP]" <MortenWennevik@xxxxxxxxxxx> wrote in message news:op.tyox14bidj93y5@xxxxxxxx
On Sat, 15 Sep 2007 11:12:00 +0200, George <George@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Hello everyone,


I am using C# and Visual Studio 2005 to develop a class library. I am
wondering whether there are any built-in log component in C# so that I can
utilize directly other than write from scratch?

I am also wondering if there does exist such log component, if multiple
processes using the built-in log component to open the same log file to write
log (in my application, I want all processes which loads the class library
DLL to have a common log file), will there be any risk of racing condition
(e.g. interlacing log of one process and another process)? Do we need any
lock/synchronization approach?


thanks in advance,
George


Hi George,

In addition to Marc's suggestion there is also log4net

http://logging.apache.org/log4net/index.html

I haven't tried logging to file, but it seems robust enough that numerous logging sources should not be a problem.

--
Happy coding!
Morten Wennevik [C# MVP]

.



Relevant Pages

  • Re: Track down external email
    ... Bharat Suneja ... MVP - Exchange ... - I use W3C Extended Log File format. ... Also I do not have logging on for my SMTP virtual server. ...
    (microsoft.public.exchange.admin)
  • Re: <%@ OutputCache Duration="30" VaryByParam="none" %>
    ... ASP.NET MVP ... Foros de ASP.NET en Espa?ol ... the articles tell what i thought in the first place. ... my method should not execute if the output is being cached, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: MFC Goldmine site updated
    ... That is what oll of those "killfilers" say, ... while following the articles they have killfiled. ... MVP Tips: http://www.flounder.com/mvp_tips.htm ...
    (microsoft.public.vc.mfc)
  • Re: Font size based on the client rectangle of the control.
    ... Bob Powell [MVP] wrote: ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Hmmm
    ... It seems like the best thing to do it to wait for an MVP on ... > questions and I'll answer C# language questions if John or Nick doesn't ... > Find great Windows Forms articles in Windows Forms Tips and Tricks ...
    (microsoft.public.dotnet.languages.csharp)