Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-637

/subsystem=logging/log-file resource cannot cope with an expression in the path

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Optional Optional
    • None
    • 1.0.0.Beta3
    • Logging
    • None

      In log subsystem, nested expression can be used for path.

      "path" => {
                              "type" => STRING,
                              "description" => "The filesystem path.",
                              "expressions-allowed" => true,
                              "nillable" => false,
                              "min-length" => 1L,
                              "max-length" => 2147483647L
                          }
      

      so if I use following log configuration :

      <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"/>
      

      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.

              Unassigned Unassigned
              istudens@redhat.com Ivo Studensky
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: