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

Unified Diff: base/logging.h

Issue 2296783002: Adds new logging type SYSLOG which logs to the system log. (Closed)
Patch Set: Moved the SYSLOG code to a separate file. Created 4 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 | « base/BUILD.gn ('k') | base/syslog_logging.h » ('j') | base/syslog_logging.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/logging.h
diff --git a/base/logging.h b/base/logging.h
index 07674698e0220dbd7d2ab1662556e2853adc275d..b703fc454eb4240b46885a17f0640a22b5ed4e07 100644
--- a/base/logging.h
+++ b/base/logging.h
@@ -768,6 +768,9 @@ class BASE_EXPORT LogMessage {
std::ostream& stream() { return stream_; }
+ LogSeverity severity() { return severity_; }
+ std::string str() { return stream_.str(); }
+
private:
void Init(const char* file, int line);
« no previous file with comments | « base/BUILD.gn ('k') | base/syslog_logging.h » ('j') | base/syslog_logging.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698