Skip to content

Commit

Permalink
Add version property to the DefaultEventSource (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextolp authored and simonporter committed May 19, 2017
1 parent b5c8920 commit 6391a67
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/DurableTask.Core/Tracing/DefaultEventSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 6391a67

Please sign in to comment.