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

Unified Diff: base/chromeos/logging.h

Issue 1923943003: Add logging to remote commands (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Log with CHROMEOS_SYSLOG Created 4 years, 7 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 | chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/chromeos/logging.h
diff --git a/base/chromeos/logging.h b/base/chromeos/logging.h
new file mode 100644
index 0000000000000000000000000000000000000000..a0a1356432129de1b1c2e59d69d5d11146aa614e
--- /dev/null
+++ b/base/chromeos/logging.h
@@ -0,0 +1,19 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
Nico 2016/06/04 01:24:59 2016, no (c)
Marton Hunyady 2016/06/06 08:28:54 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BASE_CHROMEOS_LOGGING_H_
+#define BASE_CHROMEOS_LOGGING_H_
+
+#include "base/logging.h"
+
+namespace logging {
+
+// These macros are used to log events on ChromeOS which we want to be included
+// in the system log of the device.
Andrew T Wilson (Slow) 2016/06/03 15:39:12 Should we wrap this in #if defined(OS_CHROMEOS)? I
Nico 2016/06/04 01:24:59 I think making them noops on non-OS_CHROMEOS proba
Marton Hunyady 2016/06/06 08:28:54 I made them noops, because otherwise I also need t
+#define CHROMEOS_SYSLOG(severity) LOG(severity)
+#define CHROMEOS_SYSLOG_IF(severity, condition) LOG_IF(severity, condition)
+
+} // namespace logging
+
+#endif // BASE_CHROMEOS_LOGGING_H_
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/remote_commands/device_command_reboot_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698