The typical approach we use in Java is given below:
public String myMethod
(String param
) { if (LOG.
isDebugEnabled()) LOG.
debug("myMethod(" + param +
")");
String result =
// . . . if (LOG.
isDebugEnabled()) LOG.
debug("myMethod() returns " + result
);
return result;
}
(more…)