Index: mojo/shell/init.cc |
diff --git a/mojo/shell/init.cc b/mojo/shell/init.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..71aec63b5e62cb5081f15c52bd673f6957497cc1 |
--- /dev/null |
+++ b/mojo/shell/init.cc |
@@ -0,0 +1,24 @@ |
+// 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. |
+ |
+#include "mojo/shell/init.h" |
+ |
+#include "base/logging.h" |
+ |
+namespace mojo { |
+namespace shell { |
+ |
+void InitializeLogging() { |
+ logging::LoggingSettings settings; |
+ settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG; |
+ logging::InitLogging(settings); |
+ // To view log output with IDs and timestamps use "adb logcat -v threadtime". |
+ logging::SetLogItems(false, // Process ID |
+ false, // Thread ID |
+ false, // Timestamp |
+ false); // Tick count |
+} |
+ |
+} // namespace shell |
+} // namespace mojo |