PDA

View Full Version : Log errors to file AND email them?


plcguru
07-10-2002, 01:27 AM
Hi Folks,

Right now I get an email when there is a MySQL error(like 2013).
I'd also like to log(and keep appending them) those to a file.

Anyone have any code they'd like to share that does that?

Thanks!!!!!!!!!
Phil

Logician
07-10-2002, 06:11 AM
Once my MYSQL was down for 18 hours and although my board has a relatively low traffic, I got around 2000 vb warning emails in 18 hours. :hurt: So I decided to code this hack and it's still in my to-do list. I'm just quite busy nowadays so I cant promise when to code but when I did, I'll share it here.. :)

plcguru
07-12-2002, 02:01 AM
Hi,
Anybody have any ideas or sample code?
Thanks!