9. Logging entry/exit event is not so common and I'd better write directly:

log.debug("Entering MyClass.foo(" + param1 + ", " + param2 + ")");

rather than

log.enter(this, "foo", new Object[] { param1, param2 }, "Entering");

enter()/exit() doesn't make the code much shorter, it provides just a more detailed semantic.

Emmanuel Bourg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to