This is an automated email from the ASF dual-hosted git repository.

swebb2066 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git


The following commit(s) were added to refs/heads/master by this push:
     new dc2dcfe2 Documentation: File IO is buffered only when explicitly 
configured (#273)
dc2dcfe2 is described below

commit dc2dcfe216c25ca1501d4ef500a466427470a097
Author: Stephen Webb <[email protected]>
AuthorDate: Sun Oct 15 16:01:40 2023 +1100

    Documentation: File IO is buffered only when explicitly configured (#273)
---
 src/main/cpp/fileappender.cpp           | 2 +-
 src/main/include/log4cxx/fileappender.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/cpp/fileappender.cpp b/src/main/cpp/fileappender.cpp
index 38814855..f55c080e 100644
--- a/src/main/cpp/fileappender.cpp
+++ b/src/main/cpp/fileappender.cpp
@@ -128,7 +128,7 @@ void FileAppender::setOption(const LogString& option,
        else if (StringHelper::equalsIgnoreCase(option, 
LOG4CXX_STR("BUFFEREDIO"), LOG4CXX_STR("bufferedio")))
        {
                std::lock_guard<std::recursive_mutex> lock(_priv->mutex);
-               _priv->bufferedIO = OptionConverter::toBoolean(value, true);
+               _priv->bufferedIO = OptionConverter::toBoolean(value, false);
        }
        else if (StringHelper::equalsIgnoreCase(option, 
LOG4CXX_STR("IMMEDIATEFLUSH"), LOG4CXX_STR("immediateflush")))
        {
diff --git a/src/main/include/log4cxx/fileappender.h 
b/src/main/include/log4cxx/fileappender.h
index 3ed18442..10957a54 100644
--- a/src/main/include/log4cxx/fileappender.h
+++ b/src/main/include/log4cxx/fileappender.h
@@ -129,7 +129,7 @@ class LOG4CXX_EXPORT FileAppender : public WriterAppender
                :-------------- | :----------------: | :---------------:
                FileName | {any} | -
                Append | True,False | True
-               BufferedIO | True,False | True
+               BufferedIO | True,False | False
                ImmediateFlush | True,False | False
                BufferSize | (\ref fileSz1 "1") | 8 KB
 

Reply via email to