logging_win.cc 782 B

12345678910111213141516171819202122232425262728
  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.
  4. #include "remoting/base/logging_internal.h"
  5. #include <guiddef.h>
  6. #include "base/logging.h"
  7. #include "base/logging_win.h"
  8. #include "remoting/base/logging.h"
  9. namespace remoting {
  10. void InitHostLogging() {
  11. InitHostLoggingCommon();
  12. // Write logs to the system debug log.
  13. logging::LoggingSettings settings;
  14. settings.logging_dest =
  15. logging::LOG_TO_SYSTEM_DEBUG_LOG | logging::LOG_TO_STDERR;
  16. logging::InitLogging(settings);
  17. // Enable trace control and transport through event tracing for Windows.
  18. logging::LogEventProvider::Initialize(kRemotingHostLogProviderGuid);
  19. }
  20. } // namespace remoting