Uploaded image for project: 'YADE - Yet Another Data Exchange Tool'
  1. YADE - Yet Another Data Exchange Tool
  2. YADE-566

YADE should use the configured log4j2 filePattern

    XMLWordPrintable

    Details

    • Type: Fix
    • Status: Released (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.12.12, 1.13.3
    • Fix Version/s: 1.12.15, 1.13.7
    • Component/s: None
    • Labels:
      None

      Description

      Current Situation:

      • When the LogFile settings are configured:
        • YADE always adjusts programmatically the filePattern of the log4j2 configuration for a RollingFile (JadeReportLogAppender from the log4j2.xml) to create a gz file.
          • YADE changes programmatically the default filePattern of the log4j2.xml configuration:
            • filePattern="<tmp directory path>/YADE-%d{yyyy-MM-dd}.log" to
            • filePattern="<LogFile>.%d{yyyy-MM}-%i.gz"
              • The changed pattern %d{yyyy-MM}-%i.gz is completely different to the configured %d{yyyy-MM-dd}.log¬†pattern to create the archive files.
        • Example:
          • YADE configuration <LogFile>:
            • C:/tmp/my_yade.log
          • changed filePattern is:
            • filePattern="C:/tmp/my_yade.log.%d{yyyy-MM}-%i.gz"
              • but like the default filePattern, the changed filePattern should be:
                • filePattern="C:/tmp/my_yade.log.%d{yyyy-MM-dd}.log"

      Desired Behavior:

      • YADE should only replace the file name (${env:TEMP}/YADE-) of the default filePattern with <LogFile> and not recreate the configured filePattern completely.
      • the default filePattern should be extended to support the SizeBasedTriggeringPolicy (must contain a %i)
        • filePattern="<tmp directory path>/YADE-%d{yyyy-MM-dd}-%i.log"

        Attachments

          Activity

            People

            • Assignee:
              re Robert Ehrlich
              Reporter:
              chanchal-khatri Chanchal Khatri
              Approver:
              Chanchal Khatri
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: