Http log

78 views
Skip to first unread message

Julian Halliwell

unread,
Oct 17, 2015, 5:28:34 AM10/17/15
to lu...@googlegroups.com
ACF makes available an http.log giving basic details of cfhttp
requests including: URL, method, return status code and time taken.

Is there a way of logging http calls made by Lucee? I can't see a
ready made log at either the server or web context levels.

I'm particularly interested in "time taken".

Thanks
Julian
http://cfsimplicity.com/

Andrew Dixon

unread,
Oct 17, 2015, 7:29:21 AM10/17/15
to lu...@googlegroups.com
Hi Julian,

You could use the cfstopwatch and cflog tags to create the log yourself:


Kind regards,

Andrew


--
See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your ticket NOW - http://www.cfcamp.org/
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/CAC_5VoqF82x%2BeD49yeLPUrRZgcUktu28Dhe6b11Ny89Vvss%2Bow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Mark Drew

unread,
Oct 17, 2015, 7:43:13 AM10/17/15
to lu...@googlegroups.com
What does cfstopwatch do? The description says "Stops the time from starttag to endtag"?

You mean measures the time?

Mark Drew
- Sent by typing with my thumbs. 

Scott Smith

unread,
Oct 17, 2015, 7:46:16 AM10/17/15
to Julian Halliwell, lu...@googlegroups.com


Think I responded directly to Julian only the first time. Seen my response below. Hope it helps.

On October 17, 2015 at 6:29:44 AM CDT, Scott Smith <scottad...@gmail.com> wrote:
You will want to setup Access logs in Tomcat.

If you are using the native logging that comes with Tomcat take a look at this 

https://wiki.apache.org/tomcat/AccessLogValve

If you want to look into alternative logging, this has some pretty good examples for SL4Jand Logback.



Andrew Dixon

unread,
Oct 17, 2015, 9:46:35 AM10/17/15
to lu...@googlegroups.com
Hmm... Yeah that description is terrible... I assumed it was like cftimer but easier to use... will have a play and update the docs.

Kind regards,

Andrew

Julian Halliwell

unread,
Oct 17, 2015, 9:55:35 AM10/17/15
to lu...@googlegroups.com
Exactly right both of you. You wrap it round the code to time and it
puts the measured milliseconds into the variable you specify.

Easier than cftimer because there's no need to fiddle with debug
settings/ip addresses.

On 17 October 2015 at 14:46, Andrew Dixon <andrew...@gmail.com> wrote:
> Hmm... Yeah that description is terrible... I assumed it was like cftimer
> but easier to use... will have a play and update the docs.
>

Julian Halliwell

unread,
Oct 17, 2015, 10:00:40 AM10/17/15
to lu...@googlegroups.com
Thanks Scott, but Andrew's suggestion was simpler for my purposes and
worked fine. Good references to have though, thanks.

Julian.

Andrew Dixon

unread,
Oct 17, 2015, 10:32:44 AM10/17/15
to lu...@googlegroups.com
I've updated the docs for cfstopwatch.

FYI, cfstopwatch is Lucee only and not available in ACF.

Kind regards,

Andrew

--
See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your ticket NOW - http://www.cfcamp.org/
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages