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

Create a known date/time expression syntax

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Logging, Management
    • None

      In cases of creating files, especially for logging, including a date format of when the file was created could be useful.

      The request was:

      I would like to customize the access log file name, where i use a variable to have the current date as part of the log file name as below. access_log.yyyy-MM-dd (access_log.2023-10-16) Instead of default access.log or access_log.log.

      This seems like a reasonable request to me. We could allow for something like ${time.yyyy-MM-dd}. Whether this is a known expression syntax or something custom to file names cold be up for debate. The time. would be the indicator after that key, the value is a valid java.time.format.DateTimeFormatter pattern. We might want to use something other than time. as the key, but that is the general idea.

              Unassigned Unassigned
              jperkins-rhn James Perkins
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: