Roll src/third_party/WebKit 4b9569f:acee5a5 (svn 189384:189555)
[chromium-blink-merge.git] / remoting / host / logging_win.cc
blobbe69773eecc7e1af836b0b6c7df0dc2d660aacd4
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
3 // found in the LICENSE file.
5 #include "remoting/host/logging.h"
7 #include <guiddef.h>
9 #include "base/logging.h"
10 #include "base/logging_win.h"
12 // {2db51ca1-4fd8-4b88-b5a2-fb8606b66b02}
13 const GUID kRemotingHostLogProvider =
14 { 0x2db51ca1, 0x4fd8, 0x4b88,
15 { 0xb5, 0xa2, 0xfb, 0x86, 0x06, 0xb6, 0x6b, 0x02 } };
17 namespace remoting {
19 void InitHostLogging() {
20 // Write logs to the system debug log.
21 logging::LoggingSettings settings;
22 settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG;
23 logging::InitLogging(settings);
25 // Enable trace control and transport through event tracing for Windows.
26 logging::LogEventProvider::Initialize(kRemotingHostLogProvider);
29 } // namespace remoting