In addition to the Exception Management Application Block, have a look at
the Logging Application Block.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/Logg
ing.asp
This uses the Enterprise Instrumentation Framework (EIF).
This is a more robust logging architecture. While it is still capable of
logging to the event log, if you want to use it that way, the Logging
Application Block can take configurable adapters to log to anyplace you'd
like (flat files, SQL Server, TCP messages, whatever). In addition, if a
log is not available, it can be configured to use a backup location.
It takes a little more work to use, but it is worth the effort if you really
want a fully thought-out logging solution.
--- Nick
BTW, Event logs can be configured so that they will discard old messages
rather than reject new ones. Also, you can set up your own event log to log
events from your application, making it easy to manage. I think this is
what Raghavendra was trying to say...
> Hi Gurminder,
>
[quoted text clipped - 4 lines]
> Also have a look at the Microsoft Exception Management Block.
> You can download it from the following link
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=8CA8EB6E
-6F4A-43DF-ADEB-8F22CA173E02
> Its a 600 Kb file
>
[quoted text clipped - 9 lines]
>
> interesting article to read on logging errors.
http://www.c-sharpcorner.com/Code/2003/Sept/CustomExceptionsUsingMSExpBlock.asp
> Hope all this helps you in designing a better error logging mechanism.
>
[quoted text clipped - 40 lines]
> > > >
> > > > you can download the book from here.
http://www.microsoft.com/downloads/details.aspx?FamilyId=8A2E454D-F30E-4E72-B531
-75384A0F1C47&displaylang=en
> > > > Thanks
> > > > Raghavendra
[quoted text clipped - 14 lines]
> > > > > Regds
> > > > > Gurminder
Trilok Khairnar - 01 Sep 2004 13:36 GMT
Also look at http://logging.apache.org/log4net/
Regards,
Trilok.
> In addition to the Exception Management Application Block, have a look at
> the Logging Application Block.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/Logg
ing.asp
> This uses the Enterprise Instrumentation Framework (EIF).
>
[quoted text clipped - 22 lines]
> > Also have a look at the Microsoft Exception Management Block.
> > You can download it from the following link
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=8CA8EB6E
-6F4A-43DF-ADEB-8F22CA173E02
> > Its a 600 Kb file
> >
[quoted text clipped - 9 lines]
> >
> > interesting article to read on logging errors.
http://www.c-sharpcorner.com/Code/2003/Sept/CustomExceptionsUsingMSExpBlock.asp
> > Hope all this helps you in designing a better error logging mechanism.
> >
[quoted text clipped - 46 lines]
> > > > >
> > > > > you can download the book from here.
http://www.microsoft.com/downloads/details.aspx?FamilyId=8A2E454D-F30E-4E72-B531
-75384A0F1C47&displaylang=en
> > > > > Thanks
> > > > > Raghavendra
[quoted text clipped - 15 lines]
> > > > > > Regds
> > > > > > Gurminder