I had the same issue but I added the following to my log4j.properties
file to control struts logging.

log4j.category.org.apache.commons=WARN, A1
log4j.category.org.apache.struts=WARN, A1


-----Original Message-----
From: petra staub [mailto:[EMAIL PROTECTED]] 
Sent: 16 July 2002 12:35
To: [EMAIL PROTECTED]
Subject: logging, log4j

hi,

i am using for my own classes log4j for logging.
unfortunately, not only my classes start producing output,
but also struts classes, mostly the RequestProcessor:

3945 INFO  struts.action.RequestProcessor - Processing a 'GET' for path 
'/home'

how can I get only the logging from my classes? where am
I doing something wrong?

I use log4j like in the following example:
public class ExampleClass {
  static Logger log = Logger.getLogger(ExampleClass.class.getName());

  void method() {
     log.info("log me");
  }
}
log4j.properties is in the class root and automatically loaded.


thanks!



_________________________________________________________________
Werden Sie Mitglied bei MSN Hotmail, dem gr��ten E-Mail-Service der
Welt: 
http://www.hotmail.com/de


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





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

Reply via email to