Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glog: patch to add SYSLOG_IF_EVERY_N macro support #108

Merged
merged 1 commit into from
Nov 30, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions glog/patches/0001-add-SYSLOG_IF_EVERY_N-macro-support.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
From 4b91b4730958cdd454c22223adbea04a50642cd0 Mon Sep 17 00:00:00 2001
From: Abhilash Tuse <[email protected]>
Date: Fri, 25 Nov 2016 15:03:59 +0530
Subject: [PATCH] add SYSLOG_IF_EVERY_N macro support

Signed-off-by: Abhimanyu Vishwakarma <[email protected]>
Signed-off-by: Abhilash Tuse <[email protected]>
---
src/glog/logging.h.in | 3 +++
1 file changed, 3 insertions(+)

diff --git a/src/glog/logging.h.in b/src/glog/logging.h.in
index b1de2c9..5fb14d6 100644
--- a/src/glog/logging.h.in
+++ b/src/glog/logging.h.in
@@ -949,6 +949,9 @@ bool IsFailureSignalHandlerInstalled();
#define LOG_IF_EVERY_N(severity, condition, n) \
SOME_KIND_OF_LOG_IF_EVERY_N(severity, (condition), (n), @ac_google_namespace@::LogMessage::SendToLog)

+#define SYSLOG_IF_EVERY_N(severity, condition, n) \
+ SOME_KIND_OF_LOG_IF_EVERY_N(severity, (condition), (n), @ac_google_namespace@::LogMessage::SendToSyslogAndLog)
+
// We want the special COUNTER value available for LOG_EVERY_X()'ed messages
enum PRIVATE_Counter {COUNTER};

--
2.6.2