title: How to disable tomcat server console log?
body: <p>My <code>log4j.proerties</code></p>
  
  <pre><code>log4j.rootLogger=DEBUG,R
  log4j.appender.R = org.apache.log4j.RollingFileAppender
  log4j.appender.R.File = logs/backup.log
  log4j.appender.R.Append = true
  log4j.appender.R.DatePattern = '.'yyy-MM-dd
  log4j.appender.R.layout = org.apache.log4j.PatternLayout
  log4j.appender.R.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss} %c{1} [%p] %m%n
  log4j.additivity.info.release.scheduler=false
  </code></pre>
  
  <p>My <code>Action</code> class is</p>
  
  <pre><code>private static final Logger logger = Logger.getLogger(LogAction.class);
  if(getUname().equals("admin")&amp;&amp;getPwd().equals("123"))
  {   
  logger.info("Success");
  return "su";
  }
  else
  {
    addActionMessage("user name and password incorrectly!");
    logger.info("Failure");
    return "fa";
  }
  </code></pre>
  
  <p>My <code>backup.log</code> file contain the following logs. These logs are coming from tomcat server</p>
  
  <pre><code>a2013-05-24 15:06:44 XmlConfigurationProvider [DEBUG] Loading action configurations 
  from:   struts-default.xml
  2013-05-24 15:06:44 XmlConfigurationProvider [DEBUG] Loaded action configuration
  from:       struts-default.xml
  2013-05-24 15:06:44 XmlConfigurationProvider [INFO] Parsing configuration file
  [struts-default.xml]
  2013-05-24 15:06:44 XmlConfigurationProvider [DEBUG] Loaded type: 
  name:xwork   impl:com.opensymphony.xwork2.ObjectFactory
  2013-05-24 15:06:44 XmlConfigurationProvider [DEBUG] 
  Loaded    type:com.opensymphony.xwork2.ObjectFactory name:struts 
  </code></pre>
  
  <p>but I want the following format only</p>
  
  <pre><code>2013-05-24 15:06:44 Login successfull.
  2013-05-24 15:06:44 Login failure.
  </code></pre>
  
  <p>and my question is how to avoid unwanted logs write into the log file? And I am using Struts2 and log4j properties. </p>