Logging and emailing errors

J

John

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
 
R

rowe_newsgroups

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/
 
J

John

I am guessing there isn't a library available to do this?

Thanks

Regards

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/
 
R

rowe_newsgroups

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/
 
K

kimiraikkonen

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
 

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