-
1. Re: server.log file location
wdfink Aug 8, 2013 4:16 PM (in response to sat-jboss)You can change the logfile location in the standalone.xml if the server is down.
But the prefered way is to use the CLI or management console to do it.
Also you can change the default location by using the -Djboss.server.log.dir=<a path> as JVM property during startup
-
2. Re: server.log file location
sat-jboss Aug 9, 2013 2:54 AM (in response to wdfink)From Management console
Profile->Subsystems->Core->Logging
Periodic File Handler is set as follows:
<subsystem xmlns="urn:jboss:domain:logging:1.2">
<periodic-rotating-file-handler autoflush="true" name="FILE">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
<file path="server.log" relative-to="jboss.server.log.dir"/>
<suffix value=".yyyy-MM-dd"/>
<append value="true"/>
</periodic-rotating-file-handler>
I am not able to change value of relative-to="jboss.server.log.dir"
In JVM envrionment ; jboss.server.log.dir is set to D:\CA\jboss-eap-6.1\standalone\log .
How to set this value to other location.
-
3. Re: server.log file location
wdfink Aug 9, 2013 4:39 AM (in response to sat-jboss)If you use standalone mode you can add the property to the start command:
standalone.bat -D-Djboss.server.log.dir=d:\logfiles\server1
this should change the path.
-
4. Re: server.log file location
sat-jboss Aug 16, 2013 1:47 AM (in response to wdfink)Updated JAVAI_OPTS in startup file and its working .. thanks for your advice
rem # Set log directory
set "JAVA_OPTS=%JAVA_OPTS% -Djboss.server.log.dir=E:\jboss-eap-6.1\log"