Avi Drissman | d6cdf9b | 2022-09-15 19:52:53 | [diff] [blame^] | 1 | // Copyright 2013 The Chromium Authors |
[email protected] | 6f742dd0 | 2013-11-26 23:19:50 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef REMOTING_BASE_LOGGING_H_ |
| 6 | #define REMOTING_BASE_LOGGING_H_ |
| 7 | |
| 8 | #include "base/logging.h" |
Joe Downing | b0fb542 | 2021-12-07 21:26:20 | [diff] [blame] | 9 | #include "build/build_config.h" |
| 10 | |
Xiaohan Wang | 453b3867 | 2022-01-13 20:02:44 | [diff] [blame] | 11 | #if BUILDFLAG(IS_WIN) |
Joe Downing | b0fb542 | 2021-12-07 21:26:20 | [diff] [blame] | 12 | #include <guiddef.h> |
| 13 | #endif |
[email protected] | 6f742dd0 | 2013-11-26 23:19:50 | [diff] [blame] | 14 | |
| 15 | namespace remoting { |
| 16 | |
nicholss | f620a47c | 2017-02-02 23:39:08 | [diff] [blame] | 17 | // Chromoting host code should use HOST_LOG instead of LOG(INFO) to bypass the |
| 18 | // CheckSpamLogging presubmit check. This won't spam chrome output because it |
| 19 | // runs in the chromoting host processes. |
[email protected] | 6f742dd0 | 2013-11-26 23:19:50 | [diff] [blame] | 20 | // In the future we may also consider writing to a log file instead of the |
| 21 | // console. |
| 22 | #define HOST_LOG LOG(INFO) |
kelvinp | 72b35f26 | 2016-06-23 01:03:23 | [diff] [blame] | 23 | #define HOST_DLOG DLOG(INFO) |
[email protected] | 6f742dd0 | 2013-11-26 23:19:50 | [diff] [blame] | 24 | |
Xiaohan Wang | 453b3867 | 2022-01-13 20:02:44 | [diff] [blame] | 25 | #if BUILDFLAG(IS_WIN) |
Joe Downing | b0fb542 | 2021-12-07 21:26:20 | [diff] [blame] | 26 | // {2db51ca1-4fd8-4b88-b5a2-fb8606b66b02} |
| 27 | constexpr GUID kRemotingHostLogProviderGuid = { |
| 28 | 0x2db51ca1, |
| 29 | 0x4fd8, |
| 30 | 0x4b88, |
| 31 | {0xb5, 0xa2, 0xfb, 0x86, 0x06, 0xb6, 0x6b, 0x02}}; |
| 32 | #endif |
| 33 | |
| 34 | // Initializes host logging. |
| 35 | void InitHostLogging(); |
| 36 | |
[email protected] | 6f742dd0 | 2013-11-26 23:19:50 | [diff] [blame] | 37 | } // namespace remoting |
| 38 | |
| 39 | #endif // REMOTING_BASE_LOGGING_H_ |