I want to have the log files stored in a another folder than standalone/log. So, I have updated the standalone.xml configuration file as below:
<server xmlns="urn:jboss:domain:1.2">
<extensions>
.
.
</extensions>
<system-properties>
<property name="log.root.dir" value="/tmp/logs"/>
</system-properties>
<profile>
<periodic-rotating-file-handler name="FILE_DAILY" autoflush="true">
<formatter>
<pattern-formatter pattern="%d %-5p [%c{1}] %m%n"/>
</formatter>
<file relative-to="log.root.dir" path="c3s_daily.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="true"/>
</periodic-rotating-file-handler>
.
.
When I am starting Jboss, the property log.root.dir it is not recognized. Do you know why? I would appreciate your help. Thank you.
I have found the answer after still searching .. The solution is to define paths in standalone.xml as below:
<paths>
<path name="log.root.dir" path="/tmp/logs"/>
</paths