|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Turn down logging in 2.0.4?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 |
|
|
Re: Turn down logging in 2.0.4?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 <matt@...>: > > 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 |
|
|
Re: Turn down logging in 2.0.4?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
|
|
|
Re: Turn down logging in 2.0.4?What file are you putting the settings in?
R Sent from my iPhone On Mar 11, 2011, at 2:44 PM, mraible <matt@...> 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 <matt@...>: >>> >>> 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. > |
|
|
Re: Turn down logging in 2.0.4?In src/main/resources/log4j.xml. I'm using Maven 3 and Java 6 on OS X.
|
|
|
Re: Turn down logging in 2.0.4?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<matt@...> 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<matt@...>: >>>>> 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. >>> >> |
|
|
Re: Turn down logging in 2.0.4?Yes, I am. I'm guessing it's coming from jdk logging since MyFaces recently switched to it and it's the only logging framework I don't have. (Thanks to all the frameworks, I have commons-logging, slf4j and log4j).
I'm fine with simply adding a properties file to configure logging for MyFaces b/c adding another bridge looks like it might slow things down considerably. http://www.slf4j.org/api/org/slf4j/bridge/SLF4JBridgeHandler.html
|
| Free embeddable forum powered by Nabble | Forum Help |