0 Replies Latest reply on Oct 5, 2007 11:17 AM by tanjir

    setting up different location for boot.log files running in

    tanjir

      Hi all,
      I was trying to change the location of log files for my two jboss instances... Now all server.log and boot.log files go under log directory of individual servers. I changed the log4j config file and getting both server.log files under my desired (jboss/log) directory.
      I read the documentation on http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossBootLogging. But in my unique case, I need to change the location of boot.log files in following way: (jboss/log/bootFirstServer.log and jboss/log/bootSecondServer.log)
      How can I set up the log4j.properties under bin directory (as bin directory is common for both of the servers; and unlike log4j-config.xml I can only set-up 1 log4j.properties file)?
      or if I use two different lo4j properties file, then how should I set the following java option?
      set JAVA_OPTS=%JAVA_OPTS% -Dlog4j.configuration=file:%DIRNAME%log4j.properties
      Thanks.