--- simon <[EMAIL PROTECTED]> wrote:
<snip> 

> Regarding the addition of "entry/exit" logging APIs, I'm also in favour.
> The code seems trivial, and it can be mapped to "TRACE" level for
> logging implementations that don't provide "FINER" equivalents. It also
> seems to me that:
>   log.enter("MyClass", "MyMethod", "Entering method");
> is nice and readable.

Until you refactor the class name or method name.  Then your logging code
is completely misleading.  Considering the fact that IDEs allow you to
rename things without even looking at their implementation code, the
chance of the logging not keeping up with the names is high.

I would personally never use the enter/exit methods for those reasons.  If
I wanted that kind of detail, I would use AspectJ.

David

> 
> Simon


        
                
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail

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

Reply via email to