Here's one way to do it, but it is application specific...
application.cfm
<cftry>
...
onRequestEnd.cfm
<cfcatch type="any">
<cfmail to="[EMAIL PROTECTED]" subject="ColdFusion Error on
#CGI.SERVER_NAME#" from="[EMAIL PROTECTED]">
#CFCATCH.Message#
#CFCATCH.Detail#
Have a nice day.
</cfmail>
<!--- now you can hide the error with a nice error message --->
This page is having technical problems.
<cfabort>
</cfcatch>
</cftry>
I guess your other option would be to write a service that monitors the log
directory and keeps a copy of it, and does a diff with the copy upon an
interval. It then updates the copy, and sends an email. Not to hard to do,
but it is going to cause some overhead since it will be running on an
interval.
______________________________________________
Pete Freitag ([EMAIL PROTECTED])
CFDEV.COM / NETDesign Inc.
ColdFusion Developer Resources
http://www.cfdev.com/
-----Original Message-----
From: Camden Spiller [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 16, 2000 10:29 PM
To: CF-Linux
Subject: error notification
This is a multi-part message in MIME format.
------=_NextPart_000_0115_01C037B8.0B8130A0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I'd like to recieve an email any time an error occurs in one of my CF =
templates.=20
Is there some way I can configure cf to redirect the output that gets =
sent to cf's application.log to a script that sends me an email? I'd be =
nice if the configuration was like the apache conf... wow... that would =
be nice.
Camden
------=_NextPart_000_0115_01C037B8.0B8130A0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I'd like to recieve an email any time =
an error=20
occurs in one of my CF templates. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Is there some way I can configure cf to =
redirect=20
the output that gets sent to cf's application.log to a script that sends =
me an=20
email? I'd be nice if the configuration was like the apache conf... =
wow... that=20
would be nice.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Camden</FONT></DIV></BODY></HTML>
------=_NextPart_000_0115_01C037B8.0B8130A0--
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.