System property "jboss.server.log.dir" not working for custom logger in EAP 6.1.
Issue
- Variable is correctly set in the boot.log but in custom logger not visible.
- Internally resolve the Property "jboss.server.log.dir" to get the standard JBoss logging directory. But in EAP 6.1 the property is null.
private boolean configure() {
String logDir = System.getProperty("jboss.server.log.dir");
Following is the custom logger
<subsystem xmlns="urn:jboss:domain:logging:1.2">
<custom-handler name="CUSTOM_DAILY_ROLLING_HANDLER_OTHER" class="xxx.yyy.zzz" module="x.y.z">
<level name="DEBUG"/>
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
<properties>
<property name="maxNumberOfDays" value="30"/>
<property name="logDir" value="jboss.server.log.dir"/>
<property name="fileName" value="other.log"/>
<property name="compressBackups" value="true"/>
</properties>
</custom-handler>
Environment
- JBoss Enterprise Application Platform (EAP)
- 6.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
