Log4j 2
  1. Log4j 2
  2. LOG4J2-402

Configure RandomAccessFileAppender buffer size

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta8
    • Fix Version/s: 2.0-rc1
    • Component/s: API, Appenders
    • Environment:

      LOG4J2-beta8, java 1.7, eclipse kepler, windows xp..

      Description

      Add feature for Appenders to support buffer, which will store log in to memory(app/system) and write in to file when it reaches buffer size provided.
      (http://stackoverflow.com/questions/18785611/way-to-implement-buffered-io-using-log4j2)

      this is possible?

      If this feature is already available, could you please provide me reference for it?.

      Thanks in advance.

        Issue Links

          Activity

          Hide
          Luigi Alice added a comment -

          Thx!

          Show
          Luigi Alice added a comment - Thx!
          Hide
          Remko Popma added a comment -

          Closing this issue. Please feel free to re-open if there is any issue.

          Show
          Remko Popma added a comment - Closing this issue. Please feel free to re-open if there is any issue.
          Hide
          Remko Popma added a comment -

          Good catch! I've created LOG4J2-566 for this. Thanks for bringing it to our attention!

          Show
          Remko Popma added a comment - Good catch! I've created LOG4J2-566 for this. Thanks for bringing it to our attention!
          Hide
          Luigi Alice added a comment -

          What about RollingRandomAccessFileAppender class?

          Show
          Luigi Alice added a comment - What about RollingRandomAccessFileAppender class?
          Hide
          Gary Gregory added a comment -
          commit -m "[LOG4J2-402] Configure RandomAccessFileAppender buffer size." C:/vcs/svn/apache/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/RandomAccessFileManager.java C:/vcs/svn/apache/log4j2/trunk/src/site/xdoc/manual/appenders.xml C:/vcs/svn/apache/log4j2/trunk/src/changes/changes.xml C:/vcs/svn/apache/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/RandomAccessFileAppender.java C:/vcs/svn/apache/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/RandomAccessFileManagerTest.java
              Sending        C:/vcs/svn/apache/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/RandomAccessFileAppender.java
              Sending        C:/vcs/svn/apache/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/RandomAccessFileManager.java
              Sending        C:/vcs/svn/apache/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/RandomAccessFileManagerTest.java
              Sending        C:/vcs/svn/apache/log4j2/trunk/src/changes/changes.xml
              Sending        C:/vcs/svn/apache/log4j2/trunk/src/site/xdoc/manual/appenders.xml
              Transmitting file data ...
              Committed revision 1523822.
          
          Show
          Gary Gregory added a comment - commit -m "[LOG4J2-402] Configure RandomAccessFileAppender buffer size." C:/vcs/svn/apache/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/RandomAccessFileManager.java C:/vcs/svn/apache/log4j2/trunk/src/site/xdoc/manual/appenders.xml C:/vcs/svn/apache/log4j2/trunk/src/changes/changes.xml C:/vcs/svn/apache/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/RandomAccessFileAppender.java C:/vcs/svn/apache/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/RandomAccessFileManagerTest.java Sending C:/vcs/svn/apache/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/RandomAccessFileAppender.java Sending C:/vcs/svn/apache/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/RandomAccessFileManager.java Sending C:/vcs/svn/apache/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/RandomAccessFileManagerTest.java Sending C:/vcs/svn/apache/log4j2/trunk/src/changes/changes.xml Sending C:/vcs/svn/apache/log4j2/trunk/src/site/xdoc/manual/appenders.xml Transmitting file data ... Committed revision 1523822.

            People

            • Assignee:
              Unassigned
              Reporter:
              Chandra Sekhar Kakarla
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 96h
                96h
                Remaining:
                Remaining Estimate - 96h
                96h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Development