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

How to close inactive log files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0-beta9, 2.1
    • 2.5
    • Appenders
    • linux

    Description

      Hi There,
      in log4j2 when the App start logging it create and open a file to log into and that file stay open as long as the App is running.
      in my case log4j2 create and open too many files base on ThreadContext and the OS (linux) will complaint that too many files are open and my App will crash and stop responding.
      My question is:
      1 - how do you close those files with log4j2 if they are inactive for a period of time.
      2 - How do you have access to the log4j2 handle that open those files.
      3 - How do you tell log4j2 to open a file just for a period of time.

      Thanks
      Eric

      Attachments

        Issue Links

          Activity

            People

              rgoers Ralph Goers
              erick Erick Erickson
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: