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 <sys/types.h> | 9 #include <sys/types.h> |
9 #include <unistd.h> | 10 #include <unistd.h> |
10 | 11 |
11 #include "base/logging.h" | 12 #include "base/logging.h" |
12 #include "base/scoped_generic.h" | 13 #include "base/scoped_generic.h" |
13 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
14 | 15 |
15 namespace remoting { | 16 namespace remoting { |
16 | 17 |
17 namespace { | 18 namespace { |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 // Write logs to the system debug log. | 91 // Write logs to the system debug log. |
91 logging::LoggingSettings settings; | 92 logging::LoggingSettings settings; |
92 settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG; | 93 settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG; |
93 logging::InitLogging(settings); | 94 logging::InitLogging(settings); |
94 | 95 |
95 // Write logs to syslog as well. | 96 // Write logs to syslog as well. |
96 logging::SetLogMessageHandler(LogMessageToAsl); | 97 logging::SetLogMessageHandler(LogMessageToAsl); |
97 } | 98 } |
98 | 99 |
99 } // namespace remoting | 100 } // namespace remoting |
OLD | NEW |