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

James Perkins (JIRA) issues at jboss.org
Thu Apr 6 17:36:00 EDT 2017


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

James Perkins commented on WFCORE-157:
--------------------------------------

Looking further into this I think for now we can't support expressions for all attributes/properties. For example in WildFly for the {{target}} property on the {{org.jboss.logmanager.handlers.ConsoleHandler}} we use {{System.out}} for stdout while the property in the log manager itself would require {{SYSTEM_OUT}}. It's easy enough to map the resolved value, but not an expression.

For the file based handlers allowing the {{relative-to}} attribute and {{path}} attribute to be written as expressions to the logging properties is likely enough. It would also be possible to support the {{level}} attribute on handlers and loggers as well. Those seem like the two most useful use-cases where an expression would likely be used.



> Write expressions to logging.properties configuration file
> ----------------------------------------------------------
>
>                 Key: WFCORE-157
>                 URL: https://issues.jboss.org/browse/WFCORE-157
>             Project: WildFly Core
>          Issue Type: Enhancement
>          Components: Logging
>            Reporter: James Perkins
>            Assignee: James Perkins
>            Priority: Optional
>
> 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 was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list