@@ -109,7 +109,7 @@ private static void RegisterRequestLogging(string path, Session session)
109
109
new XAttribute ( "name" , "Default" ) ) ,
110
110
new XElement ( "add" ,
111
111
new XAttribute ( "name" , EventLogListenerName ) ,
112
- new XAttribute ( "type" , EventLogTraceListenerType ) ,
112
+ new XAttribute ( "type" , String . Format ( EventLogTraceListenerTypeFormat , data [ "ProductVersion" ] ) ) ,
113
113
new XAttribute ( "initializeData" , EventLogSourceName ) ) ) ) ) ;
114
114
}
115
115
@@ -229,7 +229,7 @@ private static void RegisterErrorLogging(string path, Session session)
229
229
new XAttribute ( "name" , "Default" ) ) ,
230
230
new XElement ( "add" ,
231
231
new XAttribute ( "name" , EventLogListenerName ) ,
232
- new XAttribute ( "type" , EventLogTraceListenerType ) ,
232
+ new XAttribute ( "type" , String . Format ( EventLogTraceListenerTypeFormat , data [ "ProductVersion" ] ) ) ,
233
233
new XAttribute ( "initializeData" , EventLogSourceName ) ) ) ) ) ;
234
234
}
235
235
@@ -349,7 +349,7 @@ private static void SetupDirectory(string path)
349
349
private const string ErrorLoggingFailSourceName = "System.ServiceModel.ErrorLogging.Fail" ;
350
350
private const string ErrorLoggingFailSourceSwitchValue = "Error" ;
351
351
private const string EventLogListenerName = "EventLog" ;
352
- private const string EventLogTraceListenerType = "SMLogging.WindowsEventLogTraceListener, SMLogging, Version={0}.0, Culture=neutral, PublicKeyToken=ddc81ec55fc35caf" ;
352
+ private const string EventLogTraceListenerTypeFormat = "SMLogging.WindowsEventLogTraceListener, SMLogging, Version={0}.0, Culture=neutral, PublicKeyToken=ddc81ec55fc35caf" ;
353
353
private const string EventLogSourceName = "SMLogging" ;
354
354
355
355
#endregion
0 commit comments