title: red5 1.0.0 rc1: configure logback to log errors from org.red5.server.service.ServiceInvoker
body: <p>This is my logback configuration file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
  &lt;contextName&gt;xpofacebook&lt;/contextName&gt;
  &lt;appender name="ERROR"
  class="ch.qos.logback.core.rolling.RollingFileAppender"&gt;
     &lt;File&gt;log/xpofacebook-error.log&lt;/File&gt;
     &lt;Append&gt;true&lt;/Append&gt;
     &lt;BufferedIO&gt;false&lt;/BufferedIO&gt;
     &lt;ImmediateFlush&gt;true&lt;/ImmediateFlush&gt;
     &lt;layout class="ch.qos.logback.classic.PatternLayout"&gt;
         &lt;Pattern&gt;%date %level [%thread] %logger{10} [%file:%line] %msg%n&lt;/Pattern&gt;
     &lt;/layout&gt;
     &lt;rollingPolicy
  class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"&gt;
         &lt;FileNamePattern&gt;log/error.log.%i.zip&lt;/FileNamePattern&gt;
         &lt;MinIndex&gt;1&lt;/MinIndex&gt;
         &lt;MaxIndex&gt;3&lt;/MaxIndex&gt;
     &lt;/rollingPolicy&gt;
     &lt;triggeringPolicy
  class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"&gt;
         &lt;MaxFileSize&gt;5MB&lt;/MaxFileSize&gt;
     &lt;/triggeringPolicy&gt;
     &lt;filter class="ch.qos.logback.classic.filter.ThresholdFilter"&gt;
         &lt;level&gt;WARN&lt;/level&gt;
     &lt;/filter&gt;
  &lt;/appender&gt;
  &lt;appender name="FILE"
  class="ch.qos.logback.core.rolling.RollingFileAppender"&gt;
     &lt;File&gt;log/xpofacebook-application.log&lt;/File&gt;
     &lt;Append&gt;true&lt;/Append&gt;
     &lt;BufferedIO&gt;false&lt;/BufferedIO&gt;
     &lt;ImmediateFlush&gt;true&lt;/ImmediateFlush&gt;
     &lt;layout class="ch.qos.logback.classic.PatternLayout"&gt;
         &lt;Pattern&gt;%date{ISO8601} [%-5level] %logger{35} - %msg%n&lt;/Pattern&gt;
     &lt;/layout&gt;
     &lt;rollingPolicy
  class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"&gt;
         &lt;FileNamePattern&gt;log/xpofacebook-application.log.%i.zip&lt;/FileNamePattern&gt;
         &lt;MinIndex&gt;1&lt;/MinIndex&gt;
         &lt;MaxIndex&gt;3&lt;/MaxIndex&gt;
     &lt;/rollingPolicy&gt;
     &lt;triggeringPolicy
  class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"&gt;
         &lt;MaxFileSize&gt;5MB&lt;/MaxFileSize&gt;
     &lt;/triggeringPolicy&gt;
  &lt;/appender&gt;
  &lt;root&gt;
     &lt;level value="DEBUG" /&gt;
     &lt;appender-ref ref="ERROR" /&gt;
     &lt;appender-ref ref="FILE" /&gt;
  &lt;/root&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>so far it works great
  i need to add the following code to each class that i want to log messages in:</p>
  
  <pre><code>private static Logger log = Red5LoggerFactory.getLogger(ClassName.class, "xpofacebook");
  </code></pre>
  
  <p>i want the main log file xpofacebook-application.log to log messages outside of the classes that i work with. </p>
  
  <p>If a flex client is connected to the red5 server and is trying to invoke a command that does not exist, the following error message will be show:</p>
  
  <pre><code>[NioProcessor-1] org.red5.server.service.ServiceInvoker - Method
  getLiveChallenges with parameters [] not found in
  com.xpogames.xpofacebook.Application@55e03a61 
  </code></pre>
  
  <p>How can i make sure that these type of error messages will be included in my log file as well?</p>