Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-83

Allow flushing into file every X milliseconds

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.2.10
    • Appenders
    • None
    • All

    Description

      In FileAppender you can specify either immediate flush on every message or not flushing at all.
      Immediate flushing reduces performance in 10% - 20%, but when flushing is skipped, then it is likely that the last few log events will not be recorded on disk when the application exits.

      I suggest adding a parameter that flushes to file every X millisecond. In this case you will gain most of the 10%-20% performance, and you will minimize the lost of logs when the application exits.

      Attachments

        Activity

          People

            Unassigned Unassigned
            talg Tal G
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: