[jboss-jira] [JBoss JIRA] (WFLY-234) Write expressions to logging.properties configuration file

James Perkins (JIRA) issues at jboss.org
Tue Apr 15 20:16:35 EDT 2014


    [ https://issues.jboss.org/browse/WFLY-234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12962157#comment-12962157 ] 

James Perkins commented on WFLY-234:
------------------------------------

I started experimenting with and I just can't find a decent workaround for the system property resolution.

We'll just assume the default settings of {{jboss.server.log.dir}} for the {{relative-to}} and {{server.log}} for the path. In the {{logging.properties}} file it would look something like:
{code}
handler.FILE.fileName=${jboss.server.log.dir}/server.log
{code}

The issue is the system property {{jboss.server.log.dir}} is not set before the log manager is configured. This property is generally set during the main entry point of the server and the log manager is configured in the main entry point of jboss-modules. The only way this would work is if the value for the {{relative-to}} was also set in the {{JAVA_OPTS}}.

More over setting a custom path the user would have to add the path to the {{JAVA_OPTS}} as well. I can't see a way to resolve which path is being used by the time the log manager is configured. While just using a {{relative-to}} path is an example, the same would be true for any property.

I'm removing the release version as solving this may not happen any time soon.
                
> Write expressions to logging.properties configuration file
> ----------------------------------------------------------
>
>                 Key: WFLY-234
>                 URL: https://issues.jboss.org/browse/WFLY-234
>             Project: WildFly
>          Issue Type: Enhancement
>      Security Level: Public(Everyone can see) 
>          Components: Logging
>            Reporter: James Perkins
>            Assignee: James Perkins
>            Priority: Critical
>
> Allow properties that use expressions to write the expression out to the logging.properties configuration file. This allows properties passed in at runtime to affect the initial logging configuration.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list