| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "remoting/host/logging.h" | 5 #include "remoting/host/logging.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace remoting { | 9 namespace remoting { |
| 10 | 10 |
| 11 void InitHostLogging() { | 11 void InitHostLogging() { |
| 12 // Write logs to the system debug log. | 12 // Write logs to the system debug log. |
| 13 logging::InitLogging( | 13 logging::LoggingSettings settings; |
| 14 NULL, | 14 settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG; |
| 15 logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG, | 15 logging::InitLogging(settings); |
| 16 logging::LOCK_LOG_FILE, | |
| 17 logging::DELETE_OLD_LOG_FILE, | |
| 18 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); | |
| 19 } | 16 } |
| 20 | 17 |
| 21 } // namespace remoting | 18 } // namespace remoting |
| OLD | NEW |