aboutsummaryrefslogtreecommitdiff
path: root/src/processor/logging.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/processor/logging.h')
-rw-r--r--src/processor/logging.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/processor/logging.h b/src/processor/logging.h
index 406fb67c..97c2fe31 100644
--- a/src/processor/logging.h
+++ b/src/processor/logging.h
@@ -94,7 +94,8 @@ class LogStream {
public:
enum Severity {
SEVERITY_INFO,
- SEVERITY_ERROR
+ SEVERITY_ERROR,
+ SEVERITY_CRITICAL
};
// Begin logging a message to the stream identified by |stream|, at the
@@ -180,6 +181,15 @@ int ErrnoString(string *error_string);
__FILE__, __LINE__)
#endif // BPLOG_ERROR
+#ifndef BPLOG_CRITICAL
+#ifndef BPLOG_CRITICAL_STREAM
+#define BPLOG_CRITICAL_STREAM std::cerr
+#endif // BPLOG_CRITICAL_STREAM
+#define BPLOG_CRITICAL google_breakpad::LogStream(BPLOG_CRITICAL_STREAM, \
+ google_breakpad::LogStream::SEVERITY_CRITICAL, \
+ __FILE__, __LINE__)
+#endif // BPLOG_CRITICAL
+
#define BPLOG_IF(severity, condition) \
BPLOG_LAZY_STREAM(severity, ((condition) && BPLOG_LOG_IS_ON(severity)))