0

My Tomcat 7 is logging messages like these in the standard output's:

INFO: Stopping service Catalina
31/05/2012 15:58:59 org.apache.coyote.http11.Http11AprProtocol destroy

But I need to log only WARN and ERROR messages.

Is there anyway to set this?

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Adriano Castro
  • 1,411
  • 4
  • 19
  • 33
  • 3
    This particular log is not coming from JSF. It's coming from Tomcat. I've edited your question accordingly. – BalusC May 31 '12 at 19:23
  • Actually, it would be very interesting if I could change to WARN JSF's logging either. Things like `INFO: Deploying configuration descriptor WebApplication1.xml 31/05/2012 16:48:48 com.sun.faces.config.ConfigureListener contextInitialized` are polluting the output. – Adriano Castro May 31 '12 at 19:51
  • 1
    For that, check this dupe: http://stackoverflow.com/questions/7363704/jsf2-logs-with-tomcat – BalusC May 31 '12 at 19:54

1 Answers1

0

${catalina.base}/conf/logging.properties <-- change this file and i guess you need this setting

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO

Apostolos
  • 10,033
  • 5
  • 24
  • 39