If your using CFMX you could do something like this in your error template:

<cfif isdefined("error")>
         <cfset logScopes="error,form,attributes,client">
         <!--- now loop over the list of scopes to log --->
         <cfloop list="#logScopes#" index="i">
                 <cfoutput>
                         <cfsavecontent variable="temp">
                         #i# Scope Variables<BR>
                         <cfdump var="#evaluate(i)#">
                         <BR><BR>
                         </cfsavecontent>
                 </cfoutput>

                 <!--- append the returned temp dump to the extended error 
variable --->
                 <cfset extendedlogVar=extendedlogVar&temp>
         </cfloop>

And then mail that to the site admin. Make sure you send it as HTML, and 
you'll get a  dump of all vars and the error. Works great for us.....

Brook Davies
logiforms.com



At 01:02 PM 2/27/2003 -0600, you wrote:
>also there are some alarms you can set in the CFADMIN tool that will send 
>an email on failure.  Then there are probes you can create too.
>
>BTW, I haven't looked this up yet...does CFMX support the probe things in 
>CF5???
>
>Doug
>
> >-----Original Message-----
> >From: Joshua Miller [mailto:[EMAIL PROTECTED]
> >Sent: Thursday, February 27, 2003 1:12 PM
> >To: CF-Talk
> >Subject: RE: Setting up email from CF for errors (was Re:
> >ColdFusion and
> >SMS Messaging)
> >
> >
> >Alternatively you can use a site-wide error handler in CFAdmin
> >to do the
> >same thing.
> >
> >We use a site-wide handler with a pretty message to the user and it
> >sends email to me at the same time.
> >
> >We also use one for 404 errors that's supposed to catch things like
> >broken images and replace them with a clear gif file. These get
> >databased and then sent in a daily 404 digest so we can clean up
> >everything without getting pounded by 404 messages all day.
> >
> >Joshua Miller
> >Head Programmer / IT Manager
> >Garrison Enterprises Inc.
> >www.garrisonenterprises.net
> >[EMAIL PROTECTED]
> >(704) 569-9044 ext. 254
> >
> >***************************************************************
> >*********
> >*************
> >Any views expressed in this message are those of the individual sender,
> >except where the sender states them to be the views of
> >Garrison Enterprises Inc.
> >
> >This e-mail is intended only for the individual or entity to
> >which it is
> >addressed and contains information that is private and confidential. If
> >you are not the intended recipient you are hereby notified that any
> >dissemination, distribution or copying is strictly prohibited. If you
> >have received this e-mail in error please delete it immediately and
> >advise us by return e-mail to [EMAIL PROTECTED]
> >***************************************************************
> >*********
> >*************
> >
> >
> >-----Original Message-----
> >From: E. Keith Dodd [mailto:[EMAIL PROTECTED]
> >Sent: Thursday, February 27, 2003 1:05 PM
> >To: CF-Talk
> >Subject: Re: Setting up email from CF for errors (was Re:
> >ColdFusion and
> >SMS Messaging)
> >
> >
> >Austin
> >
> >I do the following for being notified of general errors:
> >
> >1. In application.cfm
> ><CFERROR type="EXCEPTION" template="myErrorPage.cfm">
> >2. On myErrorPage.cfm:
> >Basic page stuff with message to user that error has occurred and that
> >the webmaster is being notified of problem. Additionally: A cfmail tag
> >to me (I use HTML so looks better for me to read quickly):
> >including the
> >following in the mail message: An error was recorded on [site name]
> >website:
> >  <br /><br />
> >  1. Error:
> >  <br>#CFError.Diagnostics#
> >  <hr width="75%">
> >  <ol start="2">
> >  <li>Date/Time: #CFError.DateTime#
> >  <li>Template: #CFError.Template#
> >  <li>QueryString: #CFError.QueryString#
> >  <li>Ref: #CFError.HttpReferer#
> >  <li>Browser: #CFError.Browser#
> >  <li>Remote: #CFError.RemoteAddress#
> >  </ol>
> >  Time: #DateFormat(Now(),"m/d/yy")# : #TimeFormat(Now(),"h:mm tt")#
> >
> >User gets a nice message and I get an instant email. I'm sure there are
> >other ways, but this works for me.
> >
> >(Took the above from a cf5 application. I think I use some minor
> >differences in MX, but not at that machine.)
> >
> >Hope this helps.
> >
> >E. Keith Dodd
> >Wings of Eagles Services
> >www.wingserv.com
> >----- Original Message -----
> >From: "Austin Govella" <[EMAIL PROTECTED]>
> >To: "CF-Talk" <[EMAIL PROTECTED]>
> >Sent: Thursday, February 27, 2003 12:36 PM
> >Subject: Setting up email from CF for errors (was Re:
> >ColdFusion and SMS
> >Messaging)
> >
> >
> >> So. I want CF to email or message me when there's a problem.
> >Is there
> >> a tutorial somewhere on setting up automated email during certain
> >> kinds of errors or conditions on the server?
> >>
> >> --
> >> Austin Govella
> >> Grafofini
> >>
> >
> >
> >
> >-
> >[This E-mail scanned for viruses by declude AntiVirus Software]
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to