blob: cfd31f21e77446d1dcc98dcec072caa60c8b6f59 [file] [log] [blame]
Avi Drissmand6cdf9b2022-09-15 19:52:531// Copyright 2013 The Chromium Authors
[email protected]6f742dd02013-11-26 23:19:502// 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 Downingb0fb5422021-12-07 21:26:209#include "build/build_config.h"
10
Xiaohan Wang453b38672022-01-13 20:02:4411#if BUILDFLAG(IS_WIN)
Joe Downingb0fb5422021-12-07 21:26:2012#include <guiddef.h>
13#endif
[email protected]6f742dd02013-11-26 23:19:5014
15namespace remoting {
16
nicholssf620a47c2017-02-02 23:39:0817// 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]6f742dd02013-11-26 23:19:5020// In the future we may also consider writing to a log file instead of the
21// console.
22#define HOST_LOG LOG(INFO)
kelvinp72b35f262016-06-23 01:03:2323#define HOST_DLOG DLOG(INFO)
[email protected]6f742dd02013-11-26 23:19:5024
Xiaohan Wang453b38672022-01-13 20:02:4425#if BUILDFLAG(IS_WIN)
Joe Downingb0fb5422021-12-07 21:26:2026// {2db51ca1-4fd8-4b88-b5a2-fb8606b66b02}
27constexpr GUID kRemotingHostLogProviderGuid = {
28 0x2db51ca1,
29 0x4fd8,
30 0x4b88,
31 {0xb5, 0xa2, 0xfb, 0x86, 0x06, 0xb6, 0x6b, 0x02}};
32#endif
33
34// Initializes host logging.
35void InitHostLogging();
36
[email protected]6f742dd02013-11-26 23:19:5037} // namespace remoting
38
39#endif // REMOTING_BASE_LOGGING_H_