Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

System.Diagnostics

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Arne Garvander - 09 Oct 2007 16:14 GMT
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?
Signature

Arne Garvander
Certified Geek
Professional Data Dude

Cowboy (Gregory A. Beamer) - 09 Oct 2007 16:35 GMT
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?
Jay Pondy - 09 Oct 2007 21:04 GMT
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?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.