AOP logging in cfcatch?

22 views
Skip to first unread message

marc

unread,
Sep 24, 2012, 7:14:01 AM9/24/12
to coldspri...@googlegroups.com
Hello,

Currently  have a component with several methods where I access a db. These db calls are wrapped in a cftry/cfcatch block. In the cfcatch I log the error (cfcatch.detail). Instead of logging each individual cfcatch, is it possible to use AOP so I can define all functions that need logging in a Coldspring.xml? Will this also work in case an error is thrown?

Thanks,

Marc

marc

unread,
Sep 24, 2012, 8:43:21 AM9/24/12
to coldspri...@googlegroups.com
Looks like this is mentioned in the reference in section IV.III.IV (ThrowsAdvice)...

Marc

Reply all
Reply to author
Forward
0 new messages