Skip to content

Commit ee881ef

Browse files
committed
Merge pull request #10 from summercat/patch-1
Fix the creation of EventSource
2 parents 9dc596c + bd93ad1 commit ee881ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ServiceStack.Logging.EventLog/EventLogger.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ private void Write(object message, Exception execption, EventLogEntryType eventL
5757
StringBuilder sb = new StringBuilder();
5858

5959
System.Diagnostics.EventLog eventLogger = new System.Diagnostics.EventLog();
60-
if (!System.Diagnostics.EventLog.SourceExists(eventLogName))
60+
if (!System.Diagnostics.EventLog.SourceExists(eventLogSource))
6161
{
62-
System.Diagnostics.EventLog.CreateEventSource(eventLogName, eventLogSource);
62+
System.Diagnostics.EventLog.CreateEventSource(eventLogSource, eventLogName);
6363
}
6464

6565
sb.Append(message).Append(NEW_LINE);
@@ -224,4 +224,4 @@ public void WarnFormat(string format, params object[] args)
224224
}
225225

226226
}
227-
}
227+
}

0 commit comments

Comments
 (0)