Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7091)

Unified Diff: chrome/common/logging_chrome.cc

Issue 2530163002: Make the name of the event source for SYSLOG configurable. (Closed)
Patch Set: Remove NOTREACHED and log suffix. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/DEPS ('k') | chrome/install_static/install_details.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/logging_chrome.cc
diff --git a/chrome/common/logging_chrome.cc b/chrome/common/logging_chrome.cc
index 183d4e84792abcfdcc0c4764a51600653d4f6504..e9e51b130ea2b85aa63275000f81fbe022f939cd 100644
--- a/chrome/common/logging_chrome.cc
+++ b/chrome/common/logging_chrome.cc
@@ -61,6 +61,8 @@
#if defined(OS_WIN)
#include <initguid.h>
#include "base/logging_win.h"
+#include "base/syslog_logging.h"
+#include "chrome/install_static/install_details.h"
#endif
namespace {
@@ -359,6 +361,10 @@ void InitChromeLogging(const base::CommandLine& command_line,
#if defined(OS_WIN)
// Enable trace control and transport through event tracing for Windows.
logging::LogEventProvider::Initialize(kChromeTraceProviderName);
+
+ // Enable logging to the Windows Event Log.
+ logging::SetEventSourceName(base::UTF16ToASCII(
+ install_static::InstallDetails::Get().install_full_name()));
#endif
base::StatisticsRecorder::InitLogOnShutdown();
« no previous file with comments | « chrome/common/DEPS ('k') | chrome/install_static/install_details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698