Hi Viral,
> I am using commons-logging (using log4j) for logging..
>
> We do following logging style...
>
> if (logger.isDebugEnabled())
> {
> logger.debug("Method Name : + some Message");
> }
>
> Here can we get the method name using java reflection or some other way
> so that no need to pass the method name while logging the message ..???
I believe this is a log4j issue.
Take a look at
http://logging.apache.org/log4j/docs/api/org/apache/log4j/PatternLayout.html
and you should see "some other way". ;)
Good luck!
-- Shinobu Kawai
--
Shinobu Kawai <[EMAIL PROTECTED], [EMAIL PROTECTED]>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]