commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Bourg <ebo...@apache.org>
Subject Re: [logging] API - methods for logging entry and exit events
Date Wed, 19 Jan 2005 12:16:35 GMT
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message