From 6391a67485ea4c810b82c27819b18eb3e09b99a2 Mon Sep 17 00:00:00 2001 From: alextolp Date: Fri, 19 May 2017 09:22:34 -0700 Subject: [PATCH] Add version property to the DefaultEventSource (#93) --- src/DurableTask.Core/Tracing/DefaultEventSource.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/DurableTask.Core/Tracing/DefaultEventSource.cs b/src/DurableTask.Core/Tracing/DefaultEventSource.cs index 401c225dc..36905a5fa 100644 --- a/src/DurableTask.Core/Tracing/DefaultEventSource.cs +++ b/src/DurableTask.Core/Tracing/DefaultEventSource.cs @@ -94,7 +94,7 @@ public void Trace(string source, string instanceId, string executionId, string s public void Trace(string source, string instanceId, string executionId, string sessionId, string message, Exception exception) => this.Trace(source, instanceId, executionId, sessionId, message, exception?.ToString() ?? string.Empty); - [Event(TraceEventId, Level = EventLevel.Verbose, Keywords = Keywords.Diagnostics)] + [Event(TraceEventId, Level = EventLevel.Verbose, Keywords = Keywords.Diagnostics, Version = 2)] public void Trace(string source, string instanceId, string executionId, string sessionId, string message, string info) { if (this.IsTraceEnabled) @@ -111,7 +111,7 @@ public void Debug(string source, string instanceId, string executionId, string s public void Debug(string source, string instanceId, string executionId, string sessionId, string message, Exception exception) => this.Debug(source, instanceId, executionId, sessionId, message, exception?.ToString() ?? string.Empty); - [Event(DebugEventId, Level = EventLevel.Verbose, Keywords = Keywords.Diagnostics)] + [Event(DebugEventId, Level = EventLevel.Verbose, Keywords = Keywords.Diagnostics, Version = 2)] public void Debug(string source, string instanceId, string executionId, string sessionId, string message, string info) { if (this.IsDebugEnabled) @@ -128,7 +128,7 @@ public void Info(string source, string instanceId, string executionId, string se public void Info(string source, string instanceId, string executionId, string sessionId, string message, Exception exception) => this.Info(source, instanceId, executionId, sessionId, message, exception?.ToString() ?? string.Empty); - [Event(InfoEventId, Level = EventLevel.Informational, Keywords = EventKeywords.None)] + [Event(InfoEventId, Level = EventLevel.Informational, Keywords = EventKeywords.None, Version = 2)] public void Info(string source, string instanceId, string executionId, string sessionId, string message, string info) { if (this.IsInfoEnabled) @@ -145,7 +145,7 @@ public void Warning(string source, string instanceId, string executionId, string public void Warning(string source, string instanceId, string executionId, string sessionId, string message, Exception exception) => this.Warning(source, instanceId, executionId, sessionId, message, exception?.ToString() ?? string.Empty); - [Event(WarningEventId, Level = EventLevel.Warning, Keywords = EventKeywords.None)] + [Event(WarningEventId, Level = EventLevel.Warning, Keywords = EventKeywords.None, Version = 2)] public void Warning(string source, string instanceId, string executionId, string sessionId, string message, string exception) { if (this.IsWarningEnabled) @@ -162,7 +162,7 @@ public void Error(string source, string instanceId, string executionId, string s public void Error(string source, string instanceId, string executionId, string sessionId, string message, Exception exception) => this.Error(source, instanceId, executionId, sessionId, message, exception?.ToString() ?? string.Empty); - [Event(ErrorEventId, Level = EventLevel.Error, Keywords = EventKeywords.None)] + [Event(ErrorEventId, Level = EventLevel.Error, Keywords = EventKeywords.None, Version = 2)] public void Error(string source, string instanceId, string executionId, string sessionId, string message, string exception) { if (this.IsErrorEnabled) @@ -179,7 +179,7 @@ public void Critical(string source, string instanceId, string executionId, strin public void Critical(string source, string instanceId, string executionId, string sessionId, string message, Exception exception) => this.Critical(source, instanceId, executionId, sessionId, message, exception?.ToString() ?? string.Empty); - [Event(CriticalEventId, Level = EventLevel.Critical, Keywords = EventKeywords.None)] + [Event(CriticalEventId, Level = EventLevel.Critical, Keywords = EventKeywords.None, Version = 2)] public void Critical(string source, string instanceId, string executionId, string sessionId, string message, string exception) { if (this.IsCriticalEnabled)