Ceki, While I understand you are trying to make money, if you can't even have the courtesy to answer a simple question, then why even respond?
Anil, Log4j CAN print the class and method names, however, this is determined by how you setup your log4j output. It is my understanding that these would only be created and parsed if your logger instance needs to print it out as configured by your log4j.properties(.xml) file. Perhaps someone not interested in making money could clarify this for both of us. > -----Original Message----- > From: Ceki G�lc� [mailto:[EMAIL PROTECTED] > Sent: Monday, February 07, 2005 11:08 AM > To: Log4J Users List > Subject: Re: is log4j printing out class/method name expensive? > > > Anil, > > The statement is only partial and hence incorrect. > > At 05:47 PM 2/7/2005, you wrote: > >"Log4j can print both class & method name, but in an > expensive way. It > >creates a Throwable object, dumps the stack to a String, and > then parses the > >string to get the class/method name. As some of our > applications requires > >high throughput, we need to try to avoid unnecessary CPU cycles." > > > >Hello, > >Someone made this statement and I wondered if it is true. > >If I write logger.info("hello"); does it do this each time? > >Thanks, > >Anil Philip > > -- > Ceki G�lc� > > The complete log4j manual: http://www.qos.ch/log4j/ > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
