JBoss Community

How do I change the log file output location??

created by Ken Takahashi in Beginner's Corner - View the full discussion

Hello,

 

how can I change the output location of my log files in JBoss Application Server?

 

I've read that this can be configured In the "jboss-log4j.xml" file.  I currently have the log files defaulted to: <param name="File" value="${jboss.server.log.dir}/server.log"/>

 

I have 2 physical hard drives on the server.  How can I change the output location to another drive and folder on the same server?  Eg.,  F:\logs

I'm not too sure of the syntax here.

 

Also, do I need to restart JBoss AS after making this change?

 

The main reason for wanting to do this is because these logs are growing quite huge and are taking up enormous amounts of disk space on the C: drive.

 

Attached is the "jboss-log4j.xml" file.

 

Thanks.

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community