OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <asl.h> | 7 #include <asl.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <sys/types.h> | 9 #include <sys/types.h> |
10 #include <unistd.h> | 10 #include <unistd.h> |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 87 |
88 } // namespace | 88 } // namespace |
89 | 89 |
90 void InitHostLogging() { | 90 void InitHostLogging() { |
91 // Write logs to the system debug log. | 91 // Write logs to the system debug log. |
92 logging::LoggingSettings settings; | 92 logging::LoggingSettings settings; |
93 settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG; | 93 settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG; |
94 logging::InitLogging(settings); | 94 logging::InitLogging(settings); |
95 | 95 |
96 // Write logs to syslog as well. | 96 // Write logs to syslog as well. |
97 logging::SetLogMessageHandler(LogMessageToAsl); | 97 logging::PushLogMessageHandler(LogMessageToAsl); |
98 } | 98 } |
99 | 99 |
100 } // namespace remoting | 100 } // namespace remoting |
OLD | NEW |