Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(368)

Unified Diff: webrtc/base/logging.h

Issue 1331503002: Disable base/logging.h stderr logs by default for webrtc/ tests. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/base/logging.cc » ('j') | webrtc/base/logging.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/logging.h
diff --git a/webrtc/base/logging.h b/webrtc/base/logging.h
index 23c7373ef8a11c68f320d8e8c327b5b5e5a15266..4840dfe462d9af161f6f5518781faf5996ca5d86 100644
--- a/webrtc/base/logging.h
+++ b/webrtc/base/logging.h
@@ -80,7 +80,7 @@ struct ConstantLabel { int value; const char * label; };
#define TLABEL(x, y) { x, y }
#define LASTLABEL { 0, 0 }
-const char * FindLabel(int value, const ConstantLabel entries[]);
+const char* FindLabel(int value, const ConstantLabel entries[]);
std::string ErrorName(int err, const ConstantLabel* err_table);
//////////////////////////////////////////////////////////////////////
@@ -163,6 +163,9 @@ class LogMessage {
static void LogToDebug(LoggingSeverity min_sev);
static LoggingSeverity GetLogToDebug() { return dbg_sev_; }
+ // Sets whether logs will be directed to stderr in debug mode.
+ static void SetLogToStderr(bool log_to_stderr);
+
// Stream: Any non-blocking stream interface. LogMessage takes ownership of
// the stream. Multiple streams may be specified by using AddLogToStream.
// LogToStream is retained for backwards compatibility; when invoked, it
@@ -222,6 +225,9 @@ class LogMessage {
// Flags for formatting options
static bool thread_, timestamp_;
+ // Determines if logs will be directed to stderr in debug mode.
+ static bool log_to_stderr_;
+
DISALLOW_COPY_AND_ASSIGN(LogMessage);
};
« no previous file with comments | « no previous file | webrtc/base/logging.cc » ('j') | webrtc/base/logging.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698