thank you Yoav, but ... 1> We do not have a different logger name for each class. 2> Regarding: "You could reach it with grep / awk / sed on the log file ;)" We would like to filter during logging and not post-logging. 3> What do you mean by : " Do an indexOf("P") ...".
thank you, Rami -----Original Message----- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 4:46 PM To: Log4J Users List Subject: RE: How to reach the info of a logged class ? Howdy, You could reach it with grep / awk / sed on the log file ;) The current filter concept in log4j is that you filter logging events, not appender outputs, in order to stay appender-neutral. That's why the method you implement from the log4j Filter declaration is decide(LoggingEvent event) as opposed to decide(String appenderOutputFromEvent). Write your filter to handle logging events. The LoggingEvent instance has a getLoggerName() method which will return the logger name. For most people, this is the full name of the class that generated the logging event. Do an indexOf("P") on the logger name to see if it's there. Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Abramson, Rami [mailto:[EMAIL PROTECTED] >Sent: Thursday, April 03, 2003 2:03 AM >To: Log4j-User (E-mail) >Subject: How to reach the info of a logged class ? > >Hello all, > >Creating a new customized filter, would like to filter all the printouts of >classes from a package P. >How can I reach this information? > >Would appreciate an answer. > > thank you, > > Rami A. > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- 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]