
Signature
Arne Garvander
Certified Geek
Professional Data Dude
The Enterprise Library, which is a free download from Microsoft, has logging
capability, driven from a config file. The latest version also has a policy
injection block, which is useful for specifying when a particular message
should be logged (type of error, etc.) and is attribute driven. There is
plenty of documentation with the block, should you go this route.

Signature
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
*************************************************
| Think outside the box!
*************************************************
>I would like to put a switch in my web.config that can configure and will
>let
> me logsinformation to a textfile. Where can I find an example for that?
Arne Garvander - 09 Oct 2007 16:48 GMT
Last time I looked at the Enterprise Library, there was no way to log to an
email account, which I would prefer.

Signature
Arne Garvander
Certified Geek
Professional Data Dude
> The Enterprise Library, which is a free download from Microsoft, has logging
> capability, driven from a config file. The latest version also has a policy
[quoted text clipped - 8 lines]
> >let
> > me logsinformation to a textfile. Where can I find an example for that?
Cowboy (Gregory A. Beamer) - 09 Oct 2007 22:23 GMT
I am not sure if it is built in (will have to look), but you can more easily
extend the block today than you could before. Log4Net will log to email,
with the SMTPAppender:
http://logging.apache.org/log4net/
For config, see:
http://logging.apache.org/log4net/release/config-examples.html
roll down to SMTPAppender

Signature
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
*************************************************
| Think outside the box!
*************************************************
> Last time I looked at the Enterprise Library, there was no way to log to
> an
[quoted text clipped - 15 lines]
>> >let
>> > me logsinformation to a textfile. Where can I find an example for that?
Look into ASP.Net "Health Monitoring" and "Custom Event Providers"
> I would like to put a switch in my web.config that can configure and will let
> me logsinformation to a textfile. Where can I find an example for that?