No ..no...its not an issue at all. Use it the way "Apurva" has mentioned.
It works !! Regds R-a-v-i -----Original Message----- From: Shinobu Kawai [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 11:53 AM To: Struts Users Mailing List Subject: Re: logging 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]