Myfaces core 1.1.x and 1.2.x use apache commons-logging.
So does tomahawk.

Commons-logging just forwards logged messages to some other logging
library, eg log4j or java.util.logging, depending on what libraries you
have in your classpath.

So it is this *other* logging library that you need to configure in
order to control what gets output.

If your WEB-INF/lib directory contains log4j.jar, then you will need to
add a log4j.properties or log4j.xml file into your WEB-INF/classes dir
to configure log4j. See the log4j project for further instructions.

If your WEB-INF/lib directory does not contain log4j.jar then this is
probably being logged via the java.util.logging implementation provided
in the java standard libraries. So you will need to configure that; see
the javadoc for the java.util.logging classes for details.

Regards,
Simon

On Tue, 2009-03-24 at 15:00 -0700, Richard Yee wrote:
> It depends on what logging library you are using. Try setting the
> default logging level to ERROR or FATAL.
> Otherwise, just set the logging level for org.apach.myfaces to
> something higher than INFO.
> 
> -Richard
> 
> On Tue, Mar 24, 2009 at 2:56 PM, daniel ccss <danielcc...@gmail.com> wrote:
> > Anybody, I really want to eliminate myfaces´s messages:
> >
> > Example of the messages:
> >
> > Mar 24, 2009 2:26:35 PM org.apache.myfaces.config.FacesConfigurator
> > feedWebAppConfig
> > INFO: Reading config /WEB-INF/faces-config.xml
> > Mar 24, 2009 2:26:36 PM org.apache.myfaces.config.FacesConfigurator
> > logMetaInf
> > INFO: MyFaces-package : myfaces-api not found.
> > Mar 24, 2009 2:26:36 PM org.apache.myfaces.config.FacesConfigurator
> > logMetaInf
> > INFO: MyFaces-package : myfaces-impl not found.
> > Mar 24, 2009 2:26:36 PM org.apache.myfaces.config.FacesConfigurator
> > logMetaInf
> > INFO: MyFaces-package : tomahawk-sandbox not found.
> > Mar 24, 2009 2:26:36 PM org.apache.myfaces.config.FacesConfigurator
> > logMetaInf
> > INFO: MyFaces-package : tomahawk not found.
> > Mar 24, 2009 2:26:36 PM org.apache.myfaces.shared_impl.util.LocaleUtils
> > toLocale
> > WARNING: Locale name in faces-config.xml null or empty, setting locale to
> > default locale : en_US
> > Mar 24, 2009 2:26:37 PM net.sf.jsfcomp.ext.onload.OnLoadPhaseListener <init>
> > INFO: OnLoadPhaseListener created
> > Mar 24, 2009 2:26:37 PM org.apache.myfaces.config.FacesConfigurator
> > handleSerialFactory
> > INFO: Serialization provider : class
> > org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
> > Mar 24, 2009 2:26:37 PM
> > org.apache.myfaces.webapp.StartupServletContextListener initFaces
> > INFO: ServletContext
> > '/software/oracle/oas10r3_3/j2ee/SIACAgenda/applications/SIACAgenda/SIACAgenda/'
> > initialized.
> > 09/03/24 14:26:37 Oracle Containers for J2EE 10g (10.1.3.1.0)  initialized
> >
> >
> > Thanks
> >
> > On Tue, Mar 24, 2009 at 1:59 PM, daniel ccss <danielcc...@gmail.com> wrote:
> >>
> >> Hi all,
> >>
> >> I need to disable the JSF´s warning and info messages in my log, how can I
> >> do that??
> >>
> >> i´m using JSF: myfaces, tomahawk
> >>
> >> Thanks
> >
> >

Reply via email to