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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 2.0.2, 2.1
    • None
    • Core
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: