Matt,
Are you still having the logging problem? If so, you might check to make sure that the logs are actually from log4j and not from the jdk logging or some other logging framework (ie. sl4j). You might be able to verify that the logs are indeed from log4j by changing the message Pattern layout in the log4j.xml file and see if the layout is actually changed in the logs.

-Richard


On 3/13/2011 8:01 PM, mraible wrote:
In src/main/resources/log4j.xml. I'm using Maven 3 and Java 6 on OS X.


Richard Yee-3 wrote:
What file are you putting the settings in?
R

Sent from my iPhone

On Mar 11, 2011, at 2:44 PM, mraible<[email protected]>  wrote:

If I add the following:

    <!-- Suppress invalid warning messages from JSF -->
    <logger name="org.apache.myfaces">
        <level value="ERROR"/>
    </logger>

I still get messages like the following:

FileUpload:
[WARNING] [talledLocalContainer] Mar 11, 2011 3:41:47 PM
org.apache.myfaces.config.annotation.TomcatAnnotationLifecycleProvider
newInstance
[WARNING] [talledLocalContainer] INFO: Creating instance of
org.appfuse.webapp.action.BasePage
[WARNING] [talledLocalContainer] Mar 11, 2011 3:41:47 PM
org.apache.myfaces.config.annotation.TomcatAnnotationLifecycleProvider
destroyInstance
[WARNING] [talledLocalContainer] INFO: Destroy instance of
org.appfuse.webapp.action.BasePage
[WARNING] [talledLocalContainer] Mar 11, 2011 3:41:47 PM
org.apache.myfaces.config.annotation.TomcatAnnotationLifecycleProvider
destroyInstance
[WARNING] [talledLocalContainer] INFO: Destroy instance of
org.ajax4jsf.framework.ajax.AjaxContext
[WARNING] [talledLocalContainer] Mar 11, 2011 3:41:48 PM
org.apache.myfaces.config.annotation.TomcatAnnotationLifecycleProvider
newInstance
[WARNING] [talledLocalContainer] INFO: Creating instance of
org.appfuse.webapp.action.BasePage
[WARNING] [talledLocalContainer] Mar 11, 2011 3:41:48 PM
org.apache.myfaces.config.annotation.TomcatAnnotationLifecycleProvider
newInstance


Jakob Korherr wrote:
Hi,

Configure your logger to remove messages from org.apache.myfaces.*
packages.

E.g. for log4j: log4j.logger.org.apache.myfaces=OFF

Regards,
Jakob

2011/3/4 mraible<[email protected]>:
What's the best way to turn down logging in MyFaces 2.0.4. There's a
lot
of
warning messages that don't seem relevant.

Thanks,

Matt
--
View this message in context:
http://old.nabble.com/Turn-down-logging-in-2.0.4--tp31068698p31068698.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.




--
Jakob Korherr

blog: http://www.jakobk.com
twitter: http://twitter.com/jakobkorherr
work: http://www.irian.at


--
View this message in context:
http://old.nabble.com/Turn-down-logging-in-2.0.4--tp31068698p31129525.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.




Reply via email to