How to use jboss-log4j.xml in my application

Can I use jboss-log4j.xml as a configuration file for my application? I just want my application to register in the same place as the Jboss server (console and file) ...

+3
source share
2 answers

JBoss uses one global log4j configuration for each application. Any calls that the application makes to log4j will be redirected through configuration in jboss-log4j.xml. You can freely modify this file to suit your applications - it determines which registrars use the files.

By default, your application logs will go to the same file (s) as the JBoss log itself.

+2

, JBoss, jboss-log4j.xml . , . .

0

Source: https://habr.com/ru/post/1752812/


All Articles