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

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment