Problem with custom loggin handler
bart__ Aug 29, 2012 8:30 AMHi,
i use two versions of Jboss:
Jboss 6 EAP and Jboss 7.1 GA
with the same application and the same configuration file "domain.xml"
I configure my handlers in domain.xml:
<periodic-rotating-file-handler name="Handler1" autoflush="true"> <level name="INFO"/> <formatter> <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/> </formatter> <file relative-to="jboss.server.log.dir" path="file1.log"/> <suffix value=".yyyy-MM-dd"/> <append value="true"/> </periodic-rotating-file-handler> <periodic-rotating-file-handler name="Handler2" autoflush="true"> <level name="INFO"/> <formatter> <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/> </formatter> <file relative-to="jboss.server.log.dir" path="file2.log"/> <suffix value=".yyyy-MM-dd"/> <append value="true"/> </periodic-rotating-file-handler> <logger category="com.spa" use-parent-handlers="false" > <level name="INFO"/> <handlers> <handler name="Handler1"/> </handlers> </logger> <logger category="com.spa.data.view" use-parent-handlers="false"> <level name="INFO"/> <handlers> <handler name="Handler2"/> </handlers> </logger>
When I start Jboss 7.1 with profile=ha my application logs into file1.log and file2.log but when I start Jboss 6 EAP with the same configuration, my application logs into file called "log.txt" and not in "file1.log or file2.log"
The file "log.txt" is created in JBOSS_HOME while file1.log is created in JBOSS_PATH_LOG how i set.
Anyone can me help?
Thanks.