]
RH Bugzilla Integration updated WFCORE-637:
-------------------------------------------
Bugzilla Update: Perform
Bugzilla References:
/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.