title: Reading a config file from weblogic domain dir
body: <p>I have a config file which lists all the configuration details for Logback.xml like the log file location and log level etc. I have this file placed in resources under the weblogic domain dir. I also have a properties file in my project which should be pointing to the config file. Something like this.</p>
  
  <pre><code>iam.config.file=resources/iam_config.properties
  </code></pre>
  
  <p>and my logback.xml looks like this</p>
  
  <pre><code> &lt;configuration&gt;
    &lt;property file="${iam.config.file}"/&gt;
    &lt;appender name="iamLogFileAppender" class="ch.qos.logback.core.FileAppender"&gt;
      &lt;!-- Tests run on modern PCs show that buffering related property --&gt;
      &lt;!-- "ImmediateFlush" has negligible impact and will be ignored.  --&gt;
      &lt;File&gt;${iam.upm.log.file}&lt;/File&gt;
      &lt;Append&gt;false&lt;/Append&gt;
      &lt;encoder&gt;
        &lt;pattern&gt;[%d] %-5p %c - %m%n&lt;/pattern&gt;
      &lt;/encoder&gt;
    &lt;/appender&gt;
    &lt;root level="ERROR"&gt;
      &lt;appender-ref ref="iamLogFileAppender"/&gt;
    &lt;/root&gt;
  
    &lt;logger name="aero.sita.voyager.iam" level="${iam.upm.log.logLevel}" additivity="false"&gt;
      &lt;appender-ref ref="iamLogFileAppender" /&gt;
   &lt;/logger&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>So the idea is I change the log configurations without having to redeploy. But I'm not able to get this working as weblogic is not able to find the file when the project is deployed. How can I change</p>
  
  <pre><code>iam.config.file=resources/iam_config.properties
  </code></pre>
  
  <p>to correctly point to the file. Thanks.</p>