Index: base/syslog_logging.h |
diff --git a/base/syslog_logging.h b/base/syslog_logging.h |
index 0196ba7bbd86e979a3bcb52244f944797b064dfb..74f35beaf1aab86beb06d39e8d272c4a7c413ec5 100644 |
--- a/base/syslog_logging.h |
+++ b/base/syslog_logging.h |
@@ -17,6 +17,11 @@ namespace logging { |
#define SYSLOG(severity) \ |
SYSLOG_STREAM(severity) |
+// Sets the name of the event source for logging to the Windows Event Log. |
+// Call this function once before using the SYSLOG macro or otherwise it will |
+// behave as a regular LOG macro. |
+void BASE_EXPORT SetEventSourceName(const std::string& name); |
+ |
// Creates a formatted message on the system event log. That would be the |
// Application Event log on Windows and the messages log file on POSIX systems. |
class BASE_EXPORT EventLogMessage { |