Find who's calling the method
Posted
by Marcos Placona
on Stack Overflow
See other posts from Stack Overflow
or by Marcos Placona
Published on 2010-04-20T11:27:59Z
Indexed on
2010/04/20
11:33 UTC
Read the original article
Hit count: 516
coldfusion
|method
Hi, I'd like to somehow find out which CFC is calling my method.
I have a logging CFC which is called by many different CFC's. On this logging CFC there's a need to store which CFC called for the log.
Whilst I could simply pass the CFC name as an argument to my log.cfc, I find this to be a repetitive task, that might not be necessary, if I somehow could find out "who's" calling the method on log.cfc
Is there any programmatic way of achieving this?
Thanks in advance
© Stack Overflow or respective owner