Logging and emailing errors

  • Thread starter Thread starter John
  • Start date Start date
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
 
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/
 
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/
 
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/
 
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
 
Back
Top