Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-877

RollingFile ignoring ${sys:user.home} in filePattern which is working correct in fileName

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.0.2, 2.1
    • Fix Version/s: None
    • Component/s: Core
    • Environment:

      Windows

      Description

      I have RollingFile Appender defined like

      <RollingFile name="File" fileName="${sys:user.home}\test2.log" filePattern="${sys:user.home}\test2.%d{yyyy-MM-dd}-%i.log" immediateFlush="true" append="true">
      
      

      The first file goes in my user home directory perfectly, but the archive ones go to my classpath folder wrongly

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                amanocha Abhishek Manocha
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: