Sorry mate, I think we're talking at cross-purposes.

I'm not interested in error-trapping, and adding my own logging stuff to
my templates, or anything like that.

You know if you switch CF debugging on, you can get things like:
- the SQL that was executed;
- which templates were executed;
- how long they took to run;
all at the bottom of the HTML output for whatever request you've just
made?

Well... I'm theorising that that information isn't all acquired *right
at the end of the request* (ie: where the debug template outputs it),
I'm theorising CF captures it *as it happens*.  What I'd like to do is
to have access to it *as it happens* (ie: as the debugging service
gathers the info), so I can "listen" to it *as it happens*.

Does this make sense?
(it makes perfect sense to me, but it seems I'm not articulating myself
as both your answers and Nando's answer are answering a different
question entirely).

Thanks for bearing with me, though.
-- 
Adam

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Haikal Saadh
Sent: 27 July 2005 12:57pm
To: [email protected]
Subject: Re: [CFCDev] OT: Debugging

Yes, log4j should be able to do this.

What you use try catch, along with log4j: Something like

<cftry>
       // Do something that might break
    <cfcatch>
       <cfsavecontent variable="errorDump">
          <cfdump var="#cfcatch#" />
       </cfsavecontent>
       <cfset logger.error(errorDump) />
    <cfcatch>
</cftry>

Oh, and it's not a HTMLAppender, it's a HTMLLayout, used with
FileAppender or it's subclasses.

CFDumping the cfcatch will get you all the info that the cf error page
shows. It's just going to be formatted differently. If you want, you
could probably pinch the code that draws the gray box from the default
error handling template.


This email contains confidential information. If you are not the intended 
recipient of this email, please notify Straker Interactive and delete the 
email. You are not entitled to use it in any way.



----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to