You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rm...@apache.org on 2021/11/06 01:38:12 UTC

[logging-log4cxx] branch LOGCXX-510 updated: fix time based rolling test

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

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


The following commit(s) were added to refs/heads/LOGCXX-510 by this push:
     new 1d6407e  fix time based rolling test
1d6407e is described below

commit 1d6407efa0bcd230907d28a06e84b1c9c815c0bb
Author: Robert Middleton <ro...@rm5248.com>
AuthorDate: Fri Nov 5 21:38:03 2021 -0400

    fix time based rolling test
---
 src/main/cpp/fileappender.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/main/cpp/fileappender.cpp b/src/main/cpp/fileappender.cpp
index ed53c5d..e4a7b48 100644
--- a/src/main/cpp/fileappender.cpp
+++ b/src/main/cpp/fileappender.cpp
@@ -82,7 +82,9 @@ FileAppender::FileAppender(const LayoutPtr& layout1, const LogString& fileName1)
 
 FileAppender::FileAppender(std::unique_ptr<FileAppenderPriv> priv) :
 	WriterAppender (std::move(priv)){
-
+	_priv->fileAppend = true;
+	_priv->bufferedIO = false;
+	_priv->bufferSize = 8 * 1024;
 }
 
 FileAppender::~FileAppender()