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 2022/06/02 01:45:30 UTC

[logging-log4cxx] branch LOGCXX-556 updated: made variable static and fix logstring

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

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


The following commit(s) were added to refs/heads/LOGCXX-556 by this push:
     new 50c24b8c made variable static and fix logstring
50c24b8c is described below

commit 50c24b8ceb7cf066f75c8d189071be9d3f63f3d5
Author: Robert Middleton <ro...@rm5248.com>
AuthorDate: Wed Jun 1 21:45:25 2022 -0400

    made variable static and fix logstring
---
 src/main/cpp/syslogappender.cpp               | 2 +-
 src/main/include/log4cxx/net/syslogappender.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/cpp/syslogappender.cpp b/src/main/cpp/syslogappender.cpp
index ff9b6428..0f192dbe 100644
--- a/src/main/cpp/syslogappender.cpp
+++ b/src/main/cpp/syslogappender.cpp
@@ -70,7 +70,7 @@ SyslogAppender::SyslogAppender()
 	: syslogFacility(LOG_USER), facilityPrinting(false), sw(0), maxMessageLength(1024)
 {
 	this->initSyslogFacilityStr();
-	this->layout = LayoutPtr(new PatternLayout("%m"));
+	this->layout = LayoutPtr(new PatternLayout(LOG4CXX_STR("%m")));
 }
 
 SyslogAppender::SyslogAppender(const LayoutPtr& layout1,
diff --git a/src/main/include/log4cxx/net/syslogappender.h b/src/main/include/log4cxx/net/syslogappender.h
index d09d249a..53d50842 100644
--- a/src/main/include/log4cxx/net/syslogappender.h
+++ b/src/main/include/log4cxx/net/syslogappender.h
@@ -178,7 +178,7 @@ class LOG4CXX_EXPORT SyslogAppender : public AppenderSkeleton
 		SyslogAppender(const SyslogAppender&);
 		SyslogAppender& operator=(const SyslogAppender&);
 
-		const int MINIMUM_MESSAGE_SIZE = 12;
+		static const int MINIMUM_MESSAGE_SIZE = 12;
 }; // class SyslogAppender
 LOG4CXX_PTR_DEF(SyslogAppender);
 } // namespace net