retrieving live logging data

1 view
Skip to first unread message

Brian Pickens

unread,
Apr 24, 2009, 12:00:36 PM4/24/09
to Mach-II for CFML
Is there a way to get at a current instance of a logger using
<cfajaxproxy> ?
What I would like to do is to retrieve the data it saves internally
with a bind parameter call to a getLogData() function that I created.
Currently the logger saves log data into its variables scope whenever
its onRequestEnd() function runs. The getLogData() function returns
that data. Im thinking <cfgrid> could be an easy solution to
displaying the data.

Peter J. Farrell

unread,
Apr 24, 2009, 12:13:49 PM4/24/09
to mach-ii-for...@googlegroups.com
Provided that you called your logging property "logging" and "nameOfYourLogger" is the name you assigned to the logger when setting it up in the logging property

getProperty("logging").getLoggerByName("nameOfYourLogger").getLogData()

You can have your ajax proxy call an URL (to a Mach-II event-handler so you can use your already built security) and have it return the data in a format you can use.

.Peter

P.s.  Take a peek at how we do a similar thing with the exception logger in the Mach-II Dashboard. We use the application scope so we can access the data without digging through a bunch of method calls -- but then again I was being lazy at the time.

Brian Pickens said the following on 4/24/2009 11:00 AM:

No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.0.238 / Virus Database: 270.12.4/2078 - Release Date: 04/24/09 07:54:00

Brian Pickens

unread,
Apr 24, 2009, 12:14:51 PM4/24/09
to Mach-II for CFML
Sorry, I've got the answer to my own question. Looks like I can
leverage the utilityConnector to gain access to the the appManager.
From there I should be able to access my logger by injecting the
appManager into my own custom component. From there all I should have
to do is use coldspring's remote proxy features.

Brian Pickens

unread,
Apr 24, 2009, 12:17:22 PM4/24/09
to Mach-II for CFML
ah, sorry I posted before I saw your reply. I will for sure look into
our solution before I create a complicated mess with coldspring.
Thanks peter.
Reply all
Reply to author
Forward
0 new messages