loggin argument list ? [message #16452] |
Wed, 07 May 2003 06:09 |
Eclipse User |
|
|
|
Originally posted by: aks.terma-remove.com
Hi all
I like to log every important invocation (using log4j).
For this purpose, i made a simple template that writes the invocation name
and the arguments -but I still have to manually alter the template output ot
make it right can I automate this?
Here is the template:
if (aCallLog.isDebugEnabled()) {
aCallLog.debug("${enclosing_method}: entering" +
${enclosing_method_arguments});
}
And here is an example of the generated output from a multi argument
invocation:
if (aCallLog.isDebugEnabled()) {
aCallLog.debug("insertWaypoint: entering" + index, above, position);
}
This is the result I would have liked:
if (aCallLog.isDebugEnabled()) {
aCallLog.debug("insertWaypoint: entering, index=" + index + ", above=" +
above + ", position=" + position);
}
Any suggestions as of how to automate this?
/aksel
|
|
|
Powered by
FUDForum. Page generated in 0.02040 seconds