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

Unified Diff: remoting/base/logging.h

Issue 86523005: Replace all usage of LOG(INFO) in Chromoting host with HOST_LOG to bypass the presubmit check. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | « PRESUBMIT.py ('k') | remoting/host/chromoting_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/logging.h
diff --git a/remoting/base/logging.h b/remoting/base/logging.h
new file mode 100644
index 0000000000000000000000000000000000000000..77f618c1e61f93264c156516f3369f07c425e83b
--- /dev/null
+++ b/remoting/base/logging.h
@@ -0,0 +1,21 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_BASE_LOGGING_H_
+#define REMOTING_BASE_LOGGING_H_
+
+#include "base/logging.h"
+
+namespace remoting {
+
+// Chromoting host code should use HOST_LOG instead of LOG(INFO) to bypass
+// the CheckSpamLogging presubmit check. This won't spam chrome output because
+// it runs in the chromoting host processes.
+// In the future we may also consider writing to a log file instead of the
+// console.
+#define HOST_LOG LOG(INFO)
+
+} // namespace remoting
+
+#endif // REMOTING_BASE_LOGGING_H_
« no previous file with comments | « PRESUBMIT.py ('k') | remoting/host/chromoting_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698