title: How to log error and info messages separately into syslog with log4j?
body: <p>log4j.properties:</p>
  
  <pre><code># configure the root logger
  log4j.rootLogger=INFO, SYSLOG
  
  # configure Syslog facility LOCAL6 appender
  log4j.appender.SYSLOG=org.apache.log4j.net.SyslogAppender
  log4j.appender.SYSLOG.threshold=INFO
  log4j.appender.SYSLOG.syslogHost=localhost
  log4j.appender.SYSLOG.facility=LOCAL6
  log4j.appender.SYSLOG.layout=org.apache.log4j.PatternLayout
  log4j.appender.SYSLOG.layout.conversionPattern="MyApp: %d\{ISO8601\}%m\n"
  </code></pre>
  
  <p>logger class</p>
  
  <pre><code>import org.apache.log4j.Logger;
  
  public class Log4jAuditLogger {
      private static Logger LOG = Logger.getLogger(Log4jAuditLogger.class);
  
      public static void log(String message) {
          LOG.info(message);
      }
  }
  </code></pre>
  
  <p>I want to log info (these are audit messages, i don't want to log error messages here) messages into SYSLOG LOCAL6, and to log error messages(these are internal error messages of the java program) into SYSLOG LOCAL7. </p>
  
  <p>How should I extend this class and configuration file to do this? </p>
  
  <p>I use log4j 1.2.</p>