[jboss-jira] [JBoss JIRA] (WFCORE-637) /subsystem=logging/log-file resource cannot cope with an expression in the path

Ivo Studensky (JIRA) issues at jboss.org
Fri Apr 10 07:30:19 EDT 2015


Ivo Studensky created WFCORE-637:
------------------------------------

             Summary: /subsystem=logging/log-file resource cannot cope with an expression in the path
                 Key: WFCORE-637
                 URL: https://issues.jboss.org/browse/WFCORE-637
             Project: WildFly Core
          Issue Type: Bug
          Components: Logging
    Affects Versions: 1.0.0.Beta3
            Reporter: Ivo Studensky
            Assignee: Ivo Studensky


In log subsystem, nested expression can be used for path.
{noformat}
"path" => {
                        "type" => STRING,
                        "description" => "The filesystem path.",
                        "expressions-allowed" => true,
                        "nillable" => false,
                        "min-length" => 1L,
                        "max-length" => 2147483647L
                    }
{noformat}

so if I use following log configuration :
{noformat}
<periodic-rotating-file-handler name="FILE" autoflush="true">
                <formatter>
                    <named-formatter name="PATTERN"/>
                </formatter>
				<file relative-to="jboss.server.log.dir" path="${jboss.server.name}.log"/>
                <suffix value=".yyyy-MM-dd"/>
                <append value="true"/>
{noformat}

server log name will be HOST_NAME.log and there is no problems to write.

However, there is no log-file resource for it. This also leads into an issue that it cannot be displayed in Admin console Log Viewer menu. 




--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jboss-jira mailing list