You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by sw...@apache.org on 2024/01/25 02:28:59 UTC

(logging-log4cxx) branch improve_async_appender updated (ce5c0131 -> e45a134d)

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

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


    from ce5c0131 Merge branch 'master' into improve_async_appender
     add 76677e68 Reduce overhead of commonly used logging macros (#337)
     new 1c9b6f6e Merge branch 'master' into improve_async_appender
     new e45a134d Make asyncappender test repeatable

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/main/cpp/level.cpp                 |  16 ++++
 src/main/cpp/logger.cpp                | 146 ++++++++++++++++++++++-----------
 src/main/include/log4cxx/level.h       |  12 +++
 src/main/include/log4cxx/logger.h      |  84 +++++++++++++++++--
 src/test/cpp/asyncappendertestcase.cpp |   2 +
 5 files changed, 204 insertions(+), 56 deletions(-)


(logging-log4cxx) 02/02: Make asyncappender test repeatable

Posted by sw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit e45a134dd42f6bb5be03ff09e2f11bb2fbe3351f
Author: Stephen Webb <sw...@gmail.com>
AuthorDate: Thu Jan 25 13:28:43 2024 +1100

    Make asyncappender test repeatable
---
 src/test/cpp/asyncappendertestcase.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/test/cpp/asyncappendertestcase.cpp b/src/test/cpp/asyncappendertestcase.cpp
index 6b7e2d24..57610200 100644
--- a/src/test/cpp/asyncappendertestcase.cpp
+++ b/src/test/cpp/asyncappendertestcase.cpp
@@ -270,6 +270,8 @@ class AsyncAppenderTestCase : public AppenderSkeletonTestCase
 			async->activateOptions(p);
 			LoggerPtr rootLogger = Logger::getRootLogger();
 			rootLogger->addAppender(async);
+			LOG4CXX_INFO(rootLogger, "Hello, World"); // This causes the dispatch thread creation
+			std::this_thread::sleep_for( std::chrono::milliseconds( 10 ) ); // Wait for the dispatch thread  to be ready
 			{
 				std::unique_lock<std::mutex> sync(blockableAppender->getBlocker());
 


(logging-log4cxx) 01/02: Merge branch 'master' into improve_async_appender

Posted by sw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 1c9b6f6e5ff519d5b8a3a8668322cf8f1eb215b6
Merge: ce5c0131 76677e68
Author: Stephen Webb <sw...@gmail.com>
AuthorDate: Thu Jan 25 12:40:47 2024 +1100

    Merge branch 'master' into improve_async_appender

 src/main/cpp/level.cpp            |  16 +++++
 src/main/cpp/logger.cpp           | 146 +++++++++++++++++++++++++-------------
 src/main/include/log4cxx/level.h  |  12 ++++
 src/main/include/log4cxx/logger.h |  84 ++++++++++++++++++++--
 4 files changed, 202 insertions(+), 56 deletions(-)