You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by GitBox <gi...@apache.org> on 2020/06/03 15:00:47 UTC
[GitHub] [logging-log4cxx] pm-cfs commented on a change in pull request #24: Implement mapfilter
pm-cfs commented on a change in pull request #24:
URL: https://github.com/apache/logging-log4cxx/pull/24#discussion_r434634258
##########
File path: src/main/include/log4cxx/filter/mapfilter.h
##########
@@ -19,26 +19,87 @@
#include <log4cxx/spi/filter.h>
+#if defined(_MSC_VER)
+ #pragma warning ( push )
+ #pragma warning ( disable: 4251 )
+#endif
+
namespace log4cxx
{
namespace filter
{
+/**
+ * A Filter that operates on a Map.
+ */
+ using keyvallist = std::map<LogString, LogString>;
Review comment:
done
##########
File path: src/main/include/log4cxx/filter/mapfilter.h
##########
@@ -19,26 +19,87 @@
#include <log4cxx/spi/filter.h>
+#if defined(_MSC_VER)
+ #pragma warning ( push )
+ #pragma warning ( disable: 4251 )
+#endif
+
namespace log4cxx
{
namespace filter
{
+/**
+ * A Filter that operates on a Map.
+ */
+ using keyvallist = std::map<LogString, LogString>;
class LOG4CXX_EXPORT MapFilter: public log4cxx::spi::Filter
{
+ private:
+ bool acceptOnMatch{true};
Review comment:
I think this is complete; please let me know if your compiler has any other issues.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org