Wednesday, 2 January 2019

Wildfly server.log prevent to application log separate

If you want to log the information in separate files configure in log4j.properties

<subsystem xmlns="urn:jboss:domain:logging:6.0">
<add-logging-api-dependencies value="false"/>
<use-deployment-logging-config value="false"/>
....
</subsystem>

If you want to log the information in server.log for all application in deployment directory

<subsystem xmlns="urn:jboss:domain:logging:6.0">
<add-logging-api-dependencies value="true"/>
<use-deployment-logging-config value="false"/>
....
</subsystem>


Add these lines inside of <subsystem xmlns="urn:jboss:domain:logging:6.0">  tag.

Note : logging:6.0 is version number, So it could be 1.0/2.0/3.0/4.0 etc.

No comments:

Post a Comment