You can also setup a custom site wide error template to do this. I set one 
up using this image
http://www.cubicleman.com/images/george_error.jpg funny, eh? 

in the template, after displaying the image and a message to the user, I 
have this

<cftry>
<cfobject action="create" type="java" class="jrunx.kernel.JRun" name="jr" />
<cfmail to="[EMAIL PROTECTED];" subject="ERROR STAGING" from="[EMAIL 
PROTECTED]" 
type="HTML">

Browser: #error.browser#<br>
Time: #error.datetime#<br>
Diagnostics: #error.diagnostics#<br>
HTTPReferer: #error.httpreferer#<br>
Mailto: #error.mailto#<br>
Message: #error.message#<br>
QueryString: #error.querystring#<br>
RemoteAddress: #error.remoteaddress#<br>
RootCause: #error.rootcause#<br>
StackTrace: #error.stacktrace#<br>
Template: #error.template#<br>
Type: #error.type#<br>
JSessionID: #cookie.jsessionid# <br/>
JRun Server Name: #jr.getServerName()#<br/>

</cfmail>
<cflog log="APPLICATION" type="Error" application="YES" 
text="#error.diagnostics# : The specific sequence of files included or 
processed is: #error.template#" />
<cfcatch type="Any">
<cflog log="APPLICATION" type="Error" application="YES" text="SPECIAL: 
#error.diagnostics# : The specific sequence of files included or processed 
is: #error.template# " />
</cfcatch>
</cftry>

note that when you use custom error templates, the CF logs are not populated 
with the error info, thus I have the above cflog statements.

DK

On 7/15/05, Michael Dinowitz <[EMAIL PROTECTED]> wrote:
> 
> I caught and edited that after the fact. I've been up all night on a CF 7 
> speed increase project. Going fantastically (Love persister CFCs for query 
> caching) but while site speed saves, posting speed kills. :)
> 
> >Heh, so Stuart, just in case you are a newbie, don't forget to remove
> >the BCC below. If you don't, your errors will also email to Michael.
> >(Tsk tsk, Mikey. ;)
> >
> >On 7/15/05, Michael Dinowitz <[EMAIL PROTECTED]> wrote:
> >>
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211977
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to