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/12/10 02:06:26 UTC
(logging-log4cxx) branch multiprocessrollingfileappender created (now 36656120)
This is an automated email from the ASF dual-hosted git repository.
swebb2066 pushed a change to branch multiprocessrollingfileappender
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git
at 36656120 Allow MultiprocessRollingFileAppender in a configuration when log4cxx is statically linked
This branch includes the following new commits:
new 36656120 Allow MultiprocessRollingFileAppender in a configuration when log4cxx is statically linked
The 1 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.
(logging-log4cxx) 01/01: Allow MultiprocessRollingFileAppender in a configuration when log4cxx is statically linked
Posted by sw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
swebb2066 pushed a commit to branch multiprocessrollingfileappender
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git
commit 36656120b7a99d0da4c61b48e6dc51fc20a842aa
Author: Stephen Webb <sw...@gmail.com>
AuthorDate: Tue Dec 10 13:05:27 2024 +1100
Allow MultiprocessRollingFileAppender in a configuration when log4cxx is statically linked
---
src/main/cpp/class.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/main/cpp/class.cpp b/src/main/cpp/class.cpp
index cbfda736..7718349e 100644
--- a/src/main/cpp/class.cpp
+++ b/src/main/cpp/class.cpp
@@ -39,6 +39,9 @@
#include <log4cxx/nt/outputdebugstringappender.h>
#endif
#include <log4cxx/net/smtpappender.h>
+#if LOG4CXX_HAS_MULTIPROCESS_ROLLING_FILE_APPENDER
+#include <log4cxx/rolling/multiprocessrollingfileappender.h>
+#endif
#include <log4cxx/helpers/datagramsocket.h>
#include <log4cxx/net/syslogappender.h>
#include <log4cxx/net/telnetappender.h>
@@ -199,6 +202,9 @@ void Class::registerClasses()
StringMatchFilter::registerClass();
LocationInfoFilter::registerClass();
LOG4CXX_NS::rolling::RollingFileAppender::registerClass();
+#if LOG4CXX_HAS_MULTIPROCESS_ROLLING_FILE_APPENDER
+ LOG4CXX_NS::rolling::MultiprocessRollingFileAppender::registerClass();
+#endif
LOG4CXX_NS::rolling::SizeBasedTriggeringPolicy::registerClass();
LOG4CXX_NS::rolling::TimeBasedRollingPolicy::registerClass();
LOG4CXX_NS::rolling::ManualTriggeringPolicy::registerClass();