Hi<div><br></div><div>My logback.xml contains the following RollingFileAppender configuration:</div><div><br><div><div><appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span><File>/usr/share/tomcat5/logs/Dummy.log</File></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><RollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span><FileNamePattern>Dummy.%d.log</FileNamePattern></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><MaxHistory>120</MaxHistory></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span></RollingPolicy></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><layout class="ch.qos.logback.classic.PatternLayout"></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span><Pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</Pattern></div><div><span class="Apple-tab-span" style="white-space:pre"> </span></layout></div>
<div></appender></div><div><br></div><div><br></div><div>The log file is created in /usr/share/tomcat5/logs, which is on the production Unix server.</div><div><br></div><div>The problem is my development environment is on Windows, and Tomcat in a different directory,</div>
<div>so I have to modify the directory every time before I deployed the application to the production server.</div><div><br></div><div><br></div><div>Is there a convenient way that I don't have to modify logback.xml, and share the same logback.xml in different environments?</div>
<div><br></div><div><br></div><div>Thank you!</div><div><br></div></div><div><br></div>-- <br><br>Hez<br>
</div>