Re: Dynamic Log File Location

2010-03-29 Thread Curt Arnold
On Mar 29, 2010, at 2:05 PM, Deric Page wrote: >if (fileAppender != null) { >String logFolder = > ((RollingFileAppender)fileAppender).getFile(); >logFolder = logFolder.substring(1, > logFolder.lastIndexOf(File.pathSeparator)); >logName = logFolder + File

Dynamic Log File Location

2010-03-29 Thread Deric Page
I have several applications running on a jboss server. I want to use separate log files for each application and have them placed in the same folder as the jboss server.log file. Currently the server.log file is placed here: /usr/src/jboss/server/my_server/log/ However, when I use the below code,

Re: Standalone instance with multiple log4j setting

2010-03-29 Thread Jacob Kjome
Research Logger Repository Selectors.  Here's a resource to get you started http://wiki.apache.org/logging-log4j/AppContainerLogging Jake On Mon, 29 Mar 2010 17:51:56 +0800 WM YEOH wrote: Hi there, Current setup, - App server - Sun Java System Application Server 9.1_01 - deploy one ear

Standalone instance with multiple log4j setting

2010-03-29 Thread WM YEOH
Hi there, Current setup, - App server - Sun Java System Application Server 9.1_01 - deploy one ear(own war) and another war applications in the same stand alone instance I have setup in a way that each application has its own log4j.xml but assign to different log files, for instance, log4jA.xml -