I am also very new to Logging block. according to my knowledge we can configure all the email settings in app.config/web.config as a Trace Lister. So no need to write any code related to email settings in c#. Once you use Logger.Write("....."). your string
in write method will be redirected to the Trace listener you configured in .config file. This trace listener could be email, database, windows event log...etc. Unfortunatly I could not get good material in web. I would also wait for reply for someone to get
clear picture on how to configure all these things.
Please Mark as Answer, if it answers you, also correct me if I'm wrong.
duttavr
Contributor
4035 Points
1079 Posts
Re: How to handle exception using Microsoft enterprise library
Feb 07, 2010 07:09 PM|LINK
I am also very new to Logging block. according to my knowledge we can configure all the email settings in app.config/web.config as a Trace Lister. So no need to write any code related to email settings in c#. Once you use Logger.Write("....."). your string in write method will be redirected to the Trace listener you configured in .config file. This trace listener could be email, database, windows event log...etc. Unfortunatly I could not get good material in web. I would also wait for reply for someone to get clear picture on how to configure all these things.
Please Mark as Answer, if it answers you, also correct me if I'm wrong.