|
From: olduncleamos on 1 Jul 2008 18:07 Hi all, I have a console app, written in .Net 2.0, that I need to customize its exception logging capability. I need to output the exception log to a text file on a specific directory determined during run time. The log content needs to be customized as well so that probably only the root exception message is being captured. I thought that would have been easy to do using the Enterprise Library. I am probably doing it wrong but it seems like I have to customize the ExceptionHandler, TextFormatter, LoggingExceptionHandlerData, ... etc. I would like to know the general steps to accomplish this (i.e. which classes to override, what to change in the configuration file from a basic log to file configuration). Any help will be greatly appreciated. I have been spinning the wheels for a lot longer than I have expected already.
From: prabhupr on 1 Jul 2008 20:40 Have you tried Log4Net? Its free :) On Jul 1, 3:07 pm, olduncleamos <oldunclea...(a)yahoo.com> wrote: > Hi all, > > I have a console app, written in .Net 2.0, that I need to customize > its exception logging capability. I need to output the exception log > to a text file on a specific directory determined during run time. The > log content needs to be customized as well so that probably only the > root exception message is being captured. > > I thought that would have been easy to do using the Enterprise > Library. I am probably doing it wrong but it seems like I have to > customize the ExceptionHandler, TextFormatter, > LoggingExceptionHandlerData, ... etc. > > I would like to know the general steps to accomplish this (i.e. which > classes to override, what to change in the configuration file from a > basic log to file configuration). > > Any help will be greatly appreciated. I have been spinning the wheels > for a lot longer than I have expected already.
|
Pages: 1 Prev: Installer questions Next: Active directory - delegation of control wizard |