Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » loggin argument list ?
loggin argument list ? [message #16452] Wed, 07 May 2003 06:09
Eclipse UserFriend
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
Previous Topic:IJavaModel.copy
Next Topic:[ANN] MyEclipse Enterprise Workshop 2.0 EA1
Goto Forum:
  


Current Time: Sun May 11 11:15:19 EDT 2025

Powered by FUDForum. Page generated in 0.02040 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top