Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-306

FileAppender --- very aggressive default file locking on Windows since moving to APR

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 0.10.0
    • Fix Version/s: None
    • Component/s: Appender
    • Labels:
      None
    • Environment:
      Windows XP SP2 on Intel Xeon

      Description

      Since moving to APR, the file locking (or sharing attributes perhaps?) of FileAppender have become very aggressive.

      The end result is that when my application is logging intensively, I am unable to tail, copy, or grep the log file (it generates a permissions error!).

      In production environments, this can be a clear no-no — perhaps this could be made configurable (eg if there were performance reasons behind the current way of doing things)

        Attachments

          Activity

            People

            • Assignee:
              carnold@apache.org Curt Arnold
              Reporter:
              aerskine Allan Erskine
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: