Customize Logging output from Enterprise Library 3.1

O

olduncleamos

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top