473,397 Members | 1,985 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Logging and emailing errors

Hi

I would like to be able to log as much info as possible about an error in my
app and the critical ones to be emailed to me. Is there a pre-built
library/control that would do that?

Many Thanks

Regards
Aug 1 '08 #1
6 852
On Aug 1, 8:29*am, "John" <i...@nospam.infovis.co.ukwrote:
Hi

I would like to be able to log as much info as possible about an error inmy
app and the critical ones to be emailed to me. Is there a pre-built
library/control that would do that?

Many Thanks

Regards
For the errors:

System.Exception

For the email:

System.Net.Mail

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
Aug 1 '08 #2
I am guessing there isn't a library available to do this?

Thanks

Regards

"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:8a**********************************@r66g2000 hsg.googlegroups.com...
On Aug 1, 8:29 am, "John" <i...@nospam.infovis.co.ukwrote:
Hi

I would like to be able to log as much info as possible about an error in
my
app and the critical ones to be emailed to me. Is there a pre-built
library/control that would do that?

Many Thanks

Regards
For the errors:

System.Exception

For the email:

System.Net.Mail

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
Aug 1 '08 #3
John,

There is "Eventlog" normally the errors you describe go in "application"

http://msdn.microsoft.com/en-us/libr...og(VS.85).aspx

Very simple to use by the way.

Cor

"John" <in**@nospam.infovis.co.ukschreef in bericht
news:OW**************@TK2MSFTNGP03.phx.gbl...
>I am guessing there isn't a library available to do this?

Thanks

Regards

"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:8a**********************************@r66g2000 hsg.googlegroups.com...
On Aug 1, 8:29 am, "John" <i...@nospam.infovis.co.ukwrote:
>Hi

I would like to be able to log as much info as possible about an error in
my
app and the critical ones to be emailed to me. Is there a pre-built
library/control that would do that?

Many Thanks

Regards

For the errors:

System.Exception

For the email:

System.Net.Mail

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
Aug 1 '08 #4
I am guessing there isn't a library available to do this?

Not that I know of, though it'd only take a matter of minutes to code
one yourself.

By the way, why is this in the ADO.NET newsgroup?

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
Aug 1 '08 #5
Take a look at log4net. Just the ticket.

"Cor Ligthert[MVP]" <no************@planet.nlwrote in message
news:64**********************************@microsof t.com...
John,

There is "Eventlog" normally the errors you describe go in "application"

http://msdn.microsoft.com/en-us/libr...og(VS.85).aspx

Very simple to use by the way.

Cor

"John" <in**@nospam.infovis.co.ukschreef in bericht
news:OW**************@TK2MSFTNGP03.phx.gbl...
>>I am guessing there isn't a library available to do this?

Thanks

Regards

"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:8a**********************************@r66g200 0hsg.googlegroups.com...
On Aug 1, 8:29 am, "John" <i...@nospam.infovis.co.ukwrote:
>>Hi

I would like to be able to log as much info as possible about an error
in my
app and the critical ones to be emailed to me. Is there a pre-built
library/control that would do that?

Many Thanks

Regards

For the errors:

System.Exception

For the email:

System.Net.Mail

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/

Aug 1 '08 #6
On Aug 1, 3:29 pm, "John" <i...@nospam.infovis.co.ukwrote:
Hi

I would like to be able to log as much info as possible about an error in my
app and the critical ones to be emailed to me. Is there a pre-built
library/control that would do that?

Many Thanks

Regards
You can try a something like that if your intention is to send e-mail
immediately:

Try

' Job here

Catch ex As Exception
'First, Optionally log them in a text file using StreamWriter
including
' what error "ex" variable exposes
' Mail code implementation here
' See www.systemnetmail.com for mail

Finally
' ....
End Try
Hope this helps,

Onur
Aug 1 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Pete Jereb | last post by:
Ok, I've managed to get the logging package to work, sort of. I'm writing a text parser, where data entry clerks can edit large, unwieldy and unforgiving textfiles that are VERY SENSITIVE as to...
3
by: tafs7 | last post by:
My code below is supposed to email me when an error occurs on the application, but it's not emailing anything. Am I missing something? I know the smtp servers I've tried work. I even added a...
7
by: Leo Breebaart | last post by:
I have another question where I am not so much looking for a solution but rather hoping to get some feedback on *which* solutions people here consider good Pythonic ways to approach a issue. ...
7
by: flupke | last post by:
Hi, i'm getting errors with the log module concerning RotatingFileHandler. I'm using Python 2.4.3 on Windows XP SP2. This used to work in previous python versions but since i upgraded to 2.4.3...
3
by: philwilks | last post by:
I have a dedicated server on which I run several ASP.Net 2.0 website. At the moment, each site has an Application_OnError subroutine that is defined in the site's Global.asax file. This writes the...
0
by: rajesh.hanchate | last post by:
Please help me in resolving this issue. I am using EnterpriseLibrary 2.0 Exception and logging block for logging exceptions to event log. It works fine for sometime. After some time it stops...
4
by: Alexandru Mosoi | last post by:
why doesn't logging throw any exception when it should? how do I configure logging to throw exceptions? .... logging.fatal('asdf %d', '123') .... except: .... print 'this line is never...
6
by: Thomas Heller | last post by:
I'm using the logging module in my comtypes library to log 'interesting' things that happen. In other words, the idea is if the user of the library is interested in the details that happen in the...
1
by: arunairs | last post by:
Hi, Using the EnterpriseLibrary 4.0, is it possible to Log the method name in the log file. I have it cofigured thus: <loggingConfiguration name="Logging Application Block"...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.