Tomas Znamenacek wrote:
4. The event of method entry or exit is a trace kind of event and should not be logged at different severity(should not have a method on the logging interface) but it should be encapsulated in the message that is being logged. Also, some enter/exit events might have more importance than others, therefore the fact that an event represents enter or exit point should be a state of the message not its severity.
The proposed interface will allow us to make a logging call for method enter/exit event without having to create another object(message object) and set the enter/exit flag on it. If there is a logging implementation that allows the enter/exit be a flag on message object, the wrapper for this implementation can certainly have the enter/exit methods implemented that way. When enter/exit events need to be logged on different levels, we start talking about two dimensional space of logging events. Adding support for this into a thin wrapper that is designed to bridge many(all?) different APIs, will get too complicated and would loose the simplicity and ease of use.
Indeed, it's still possible with:
if (log.isDebugEnabled()) { log.enter(this, "foo"); }
There is no need for a "level" parameter on the enter/exit methods.
Emmanuel Bourg
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]