title: Ways to configure logs other than log4j xml, properties file, and source code (mainly java)?
body: <p>I'm looking at the source code of some application. It is using <strong>Spring framework, Apache Tiles, JSP, Log4j, java, javascript, jquery, jqplot, Jsch</strong>, and etc.</p>
  
  <p>I know where the logs are created. (a/b/logs) However, when I look at source code, I don't know how logs are created under the folder name 'logs'.  I looked at log4j.xml,  web.xml , property files. I found the code for how the path 'a/b' is created, but not logs. Also that folder has 4 types of logs. And they are name in a pattern like  access.20181227001 , errors.20182111.  I want to know where I have to look to find how the logs are created in this manner. </p>
  
  <blockquote>
    <p><strong><em>Log4J.xml</em></strong> </p>
  </blockquote>
  
  <pre><code>&lt;!-- Appenders --&gt;
  &lt;appender name="console" class="org.apache.log4j.ConsoleAppender"&gt;
      &lt;layout class="org.apache.log4j.PatternLayout"&gt;
          &lt;param name="ConversionPattern" value="%d %5p [%c] %m%n" /&gt;
      &lt;/layout&gt;
  &lt;/appender&gt;
  
  &lt;appender name="console-infolog" class="org.apache.log4j.ConsoleAppender"&gt;
      &lt;layout class="org.apache.log4j.PatternLayout"&gt;
          &lt;param name="ConversionPattern" value="%d %5p %m%n" /&gt;
      &lt;/layout&gt;  
  &lt;/appender&gt; 
  
  &lt;!-- Application Loggers --&gt;
  &lt;logger name="com.dsmentoring.chakan" additivity="false"&gt;
      &lt;level value="debug" /&gt;
      &lt;appender-ref ref="console"/&gt;
  &lt;/logger&gt;
  
  &lt;!-- 3rdparty Loggers --&gt;
  &lt;logger name="org.springframework.core"&gt;
      &lt;level value="error"/&gt; 
  &lt;/logger&gt;
  
  &lt;!-- Bean logger --&gt;
  &lt;logger name="org.springframework.beans"&gt;
      &lt;level value="error"/&gt; 
  &lt;/logger&gt;
  
  &lt;!-- Context logger --&gt;
  &lt;logger name="org.springframework.context"&gt;
      &lt;level value="error"/&gt; 
  &lt;/logger&gt;
  
  &lt;!-- Web logger --&gt;
  &lt;logger name="org.springframework.web"&gt;
      &lt;level value="error"/&gt; 
  &lt;/logger&gt;
  
  &lt;logger name="org.springframework.ldap" additivity="true"&gt;
      &lt;level value="error"/&gt; 
  &lt;/logger&gt;
  &lt;!-- LDAP logger --&gt;
  &lt;logger name="com.unboundid.ldap" additivity="true"&gt;
      &lt;level value="error"/&gt; 
  &lt;/logger&gt;
  
  &lt;!-- Root Logger --&gt;
  &lt;root&gt;
      &lt;priority value="off" /&gt;
      &lt;appender-ref ref="console" /&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>      </p>
  
  <p>To sum up : </p>
  
  <p>1)  Is there a way to configure where logs are created and how they are created (4 types of logs) Other than log4j.xml, xml files and property files?  I looked at all the java, jsp, js code but can't seem to find the configuration for logs. So I want to know if there are other ways to do that or where I should look for those configuration. </p>
  
  <p>2) The 'logs' folder is possibly default for log4j? </p>
  
  <blockquote>
    <p><strong>ldap.properties</strong></p>
  </blockquote>
  
  <pre><code>#LDAP Connection Info
  ldap.host=192.168.0.17 
  ldap.port=22389 
  ldap.userName=cn=directory manager 
  ldap.password= 9074B18A0DE2D50C068D37B60BE5DFDE 
  ldap.baseDN=o=sso30root 
  ldap.defaultLoadSize=1000 
  ldap.start=start-ds 
  ldap.stop=stop-ds 
  ldap.workdir=/home/KB_openDJ     // logs are created under this path
                                   // /home/KB_openDJ/logs 
  </code></pre>
  
  <p>In other java class, they use this. </p>
  
  <pre><code>@Value("${ldap.workdir}")
  private String WORK_DIR;
  
  //  I ommited many lines in between
  
  try{
              diskUsage = sigar.getFileSystemUsage(WORK_DIR);
              diskIOInfo.setDiskRead((int)(diskUsage.getDiskReadBytes()));
              diskIOInfo.setDiskWrite((int)(diskUsage.getDiskWriteBytes()));
          }catch(SigarException sigarEx){
              log.debug("Disk Usage info load Error : " + sigarEx.getMessage());
          }
  </code></pre>
  
  <p>I used the 'Search' feature in Eclipse many times. ( logs, WORK_DIR, and 4 types of log name, and many others. I am unable to locate the code about logging configuration. :(</p>
  
  <p><strong>My log4j version</strong> : </p>
  
  <blockquote>
    <p>1.2.15</p>
  </blockquote>