title: Configuring commons logging in Glassfish
body: <p>I am using commons logging for my application running on Glassfish V3.1(I am new to glassfish).  I have different applications running on Glassfish under ../domain1 folder(Developers machine). I am using an XML to configure Logging.Following is the my xml config</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE log4j:configuration SYSTEM "log4j.dtd" &gt;
  &lt;log4j:configuration&gt;
      &lt;appender name="file"
          class="org.apache.log4j.RollingFileAppender"&gt;
          &lt;param name="maxFileSize" value="100KB" /&gt;
          &lt;param name="maxBackupIndex" value="5" /&gt;
          &lt;param name="File" value="/home/phanikumar/Desktop/debug.log" /&gt;
          &lt;param name="threshold" value="debug"/&gt;
          &lt;layout class="org.apache.log4j.PatternLayout"&gt;
              &lt;param name="ConversionPattern"
                  value="%d{DATE} %5p %c{1}:%L - %m%n" /&gt;
          &lt;/layout&gt;
          &lt;filter class="org.apache.log4j.varia.LevelRangeFilter"&gt;
              &lt;param name="LevelMin" value="warn" /&gt;
              &lt;param name="LevelMax" value="fatal" /&gt;
          &lt;/filter&gt;
  
      &lt;/appender&gt;
       &lt;logger name="com"&gt;
          &lt;level value="DEBUG" /&gt;     
          &lt;appender-ref ref="file"/&gt;
      &lt;/logger&gt;
  
      &lt;root&gt;
  
          &lt;appender-ref ref="file" /&gt;
  
      &lt;/root&gt;
  &lt;/log4j:configuration&gt;
  </code></pre>
  
  <p>In this config file I have explicitly mentioned the file to be in a specific location but it never did.Is there any problem with the logger file?Am I missing some thing?</p>
  
  <p>or </p>
  
  <p>Is there any way that I can configure my logs to be in a specific location? I have seen the server.log file and it is unsuitable for my requirement as the logs of all applications are logged in a same file.</p>
  
  <p>Please kindly help me.</p>