Depends.  Are you _certain_ this is the properties file being used to configure log4j? 
 Try setting the system property to log4j.debug to true (i.e., -Dlog4j.debug=true)...

The best place for it in a web app is as a file named log4j.properties in 
WEB-INF/classes...



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 3:32 PM
To: Struts Users Mailing List
Subject: RE: Disable INFO Log messages in struts


Any suggestions this is not working to remove struts INFO messages

# Set root category priority to DEBUG and set its only appender to A1
log4j.rootCategory=ERROR, A1

# A1 is set to be a ConsoleAppender (writes to system console).
log4j.appender.A1=org.apache.log4j.ConsoleAppender

# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout

# Change to BasicConfigurator
log4j.appender.A1.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss,SSS} 
%-5p [%c{1}] %m%n

log4j.logger.org.apache.struts.action.RequestProcessor=WARN
log4j.logger.org.apache.struts.util.PropertyMessageResources=ERROR





"Dalmia, Swati" <[EMAIL PROTECTED]>
12/18/2003 04:05 PM
Please respond to "Struts Users Mailing List"

 
        To:     "Struts Users Mailing List" <[EMAIL PROTECTED]>
        cc: 
        Subject:        RE: Disable INFO Log messages in struts


In Log4J properties file you can add this lines

#############################################################
#
# Print only messages of level WARN or above in the package struts
#
#########################################################
#log4j.logger.org.apache.struts.action.RequestProcessor=WARN
#log4j.logger.org.apache.struts.util.PropertyMessageResources=ERROR

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 2:01 PM
To: [EMAIL PROTECTED]
Subject: Disable INFO Log messages in struts


I have set DEBUG to Zero in the action init parms.

I am still getting too many INFO messages from struts

INFO util.PropertyMessageResources  - Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true

I am using a commons-logging.properties file which points to a 
log4j.properties file.
I can set the debugging for my log4j log but the org.apache.struts. log 
INFO messages keep appearing.

Can someone make it stop...

thanks

---------------------------------------------------------------------
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]

Reply via email to