@@ -141,6 +141,126 @@ public static void Error<T0, T1, T2>(string messageTemplate, T0 propertyValue0,
141141 GetLogger ( ) . Error ( messageTemplate , propertyValue0 , propertyValue1 , propertyValue2 ) ;
142142 }
143143
144+ /// <summary>
145+ /// 记录带有四个属性值的错误消息模板。
146+ /// </summary>
147+ /// <typeparam name="T0">第一个属性值的类型 / The type of the first property value</typeparam>
148+ /// <typeparam name="T1">第二个属性值的类型 / The type of the second property value</typeparam>
149+ /// <typeparam name="T2">第三个属性值的类型 / The type of the third property value</typeparam>
150+ /// <typeparam name="T3">第四个属性值的类型 / The type of the fourth property value</typeparam>
151+ /// <param name="messageTemplate">消息模板 / The message template</param>
152+ /// <param name="propertyValue0">第一个属性值 / The first property value</param>
153+ /// <param name="propertyValue1">第二个属性值 / The second property value</param>
154+ /// <param name="propertyValue2">第三个属性值 / The third property value</param>
155+ /// <param name="propertyValue3">第四个属性值 / The fourth property value</param>
156+ /// <remarks>
157+ /// Uses structured logging to record error level messages with four properties.
158+ /// </remarks>
159+ public static void Error < T0 , T1 , T2 , T3 > ( string messageTemplate , T0 propertyValue0 , T1 propertyValue1 , T2 propertyValue2 , T3 propertyValue3 )
160+ {
161+ GetLogger ( ) . Error ( messageTemplate , propertyValue0 , propertyValue1 , propertyValue2 , propertyValue3 ) ;
162+ }
163+
164+ /// <summary>
165+ /// 记录带有五个属性值的错误消息模板。
166+ /// </summary>
167+ /// <typeparam name="T0">第一个属性值的类型 / The type of the first property value</typeparam>
168+ /// <typeparam name="T1">第二个属性值的类型 / The type of the second property value</typeparam>
169+ /// <typeparam name="T2">第三个属性值的类型 / The type of the third property value</typeparam>
170+ /// <typeparam name="T3">第四个属性值的类型 / The type of the fourth property value</typeparam>
171+ /// <typeparam name="T4">第五个属性值的类型 / The type of the fifth property value</typeparam>
172+ /// <param name="messageTemplate">消息模板 / The message template</param>
173+ /// <param name="propertyValue0">第一个属性值 / The first property value</param>
174+ /// <param name="propertyValue1">第二个属性值 / The second property value</param>
175+ /// <param name="propertyValue2">第三个属性值 / The third property value</param>
176+ /// <param name="propertyValue3">第四个属性值 / The fourth property value</param>
177+ /// <param name="propertyValue4">第五个属性值 / The fifth property value</param>
178+ /// <remarks>
179+ /// Uses structured logging to record error level messages with five properties.
180+ /// </remarks>
181+ public static void Error < T0 , T1 , T2 , T3 , T4 > ( string messageTemplate , T0 propertyValue0 , T1 propertyValue1 , T2 propertyValue2 , T3 propertyValue3 , T4 propertyValue4 )
182+ {
183+ GetLogger ( ) . Error ( messageTemplate , propertyValue0 , propertyValue1 , propertyValue2 , propertyValue3 , propertyValue4 ) ;
184+ }
185+
186+ /// <summary>
187+ /// 记录带有六个属性值的错误消息模板。
188+ /// </summary>
189+ /// <typeparam name="T0">第一个属性值的类型 / The type of the first property value</typeparam>
190+ /// <typeparam name="T1">第二个属性值的类型 / The type of the second property value</typeparam>
191+ /// <typeparam name="T2">第三个属性值的类型 / The type of the third property value</typeparam>
192+ /// <typeparam name="T3">第四个属性值的类型 / The type of the fourth property value</typeparam>
193+ /// <typeparam name="T4">第五个属性值的类型 / The type of the fifth property value</typeparam>
194+ /// <typeparam name="T5">第六个属性值的类型 / The type of the sixth property value</typeparam>
195+ /// <param name="messageTemplate">消息模板 / The message template</param>
196+ /// <param name="propertyValue0">第一个属性值 / The first property value</param>
197+ /// <param name="propertyValue1">第二个属性值 / The second property value</param>
198+ /// <param name="propertyValue2">第三个属性值 / The third property value</param>
199+ /// <param name="propertyValue3">第四个属性值 / The fourth property value</param>
200+ /// <param name="propertyValue4">第五个属性值 / The fifth property value</param>
201+ /// <param name="propertyValue5">第六个属性值 / The sixth property value</param>
202+ /// <remarks>
203+ /// Uses structured logging to record error level messages with six properties.
204+ /// </remarks>
205+ public static void Error < T0 , T1 , T2 , T3 , T4 , T5 > ( string messageTemplate , T0 propertyValue0 , T1 propertyValue1 , T2 propertyValue2 , T3 propertyValue3 , T4 propertyValue4 , T5 propertyValue5 )
206+ {
207+ GetLogger ( ) . Error ( messageTemplate , propertyValue0 , propertyValue1 , propertyValue2 , propertyValue3 , propertyValue4 , propertyValue5 ) ;
208+ }
209+
210+ /// <summary>
211+ /// 记录带有七个属性值的错误消息模板。
212+ /// </summary>
213+ /// <typeparam name="T0">第一个属性值的类型 / The type of the first property value</typeparam>
214+ /// <typeparam name="T1">第二个属性值的类型 / The type of the second property value</typeparam>
215+ /// <typeparam name="T2">第三个属性值的类型 / The type of the third property value</typeparam>
216+ /// <typeparam name="T3">第四个属性值的类型 / The type of the fourth property value</typeparam>
217+ /// <typeparam name="T4">第五个属性值的类型 / The type of the fifth property value</typeparam>
218+ /// <typeparam name="T5">第六个属性值的类型 / The type of the sixth property value</typeparam>
219+ /// <typeparam name="T6">第七个属性值的类型 / The type of the seventh property value</typeparam>
220+ /// <param name="messageTemplate">消息模板 / The message template</param>
221+ /// <param name="propertyValue0">第一个属性值 / The first property value</param>
222+ /// <param name="propertyValue1">第二个属性值 / The second property value</param>
223+ /// <param name="propertyValue2">第三个属性值 / The third property value</param>
224+ /// <param name="propertyValue3">第四个属性值 / The fourth property value</param>
225+ /// <param name="propertyValue4">第五个属性值 / The fifth property value</param>
226+ /// <param name="propertyValue5">第六个属性值 / The sixth property value</param>
227+ /// <param name="propertyValue6">第七个属性值 / The seventh property value</param>
228+ /// <remarks>
229+ /// Uses structured logging to record error level messages with seven properties.
230+ /// </remarks>
231+ public static void Error < T0 , T1 , T2 , T3 , T4 , T5 , T6 > ( string messageTemplate , T0 propertyValue0 , T1 propertyValue1 , T2 propertyValue2 , T3 propertyValue3 , T4 propertyValue4 , T5 propertyValue5 , T6 propertyValue6 )
232+ {
233+ GetLogger ( ) . Error ( messageTemplate , propertyValue0 , propertyValue1 , propertyValue2 , propertyValue3 , propertyValue4 , propertyValue5 , propertyValue6 ) ;
234+ }
235+
236+ /// <summary>
237+ /// 记录带有八个属性值的错误消息模板。
238+ /// </summary>
239+ /// <typeparam name="T0">第一个属性值的类型 / The type of the first property value</typeparam>
240+ /// <typeparam name="T1">第二个属性值的类型 / The type of the second property value</typeparam>
241+ /// <typeparam name="T2">第三个属性值的类型 / The type of the third property value</typeparam>
242+ /// <typeparam name="T3">第四个属性值的类型 / The type of the fourth property value</typeparam>
243+ /// <typeparam name="T4">第五个属性值的类型 / The type of the fifth property value</typeparam>
244+ /// <typeparam name="T5">第六个属性值的类型 / The type of the sixth property value</typeparam>
245+ /// <typeparam name="T6">第七个属性值的类型 / The type of the seventh property value</typeparam>
246+ /// <typeparam name="T7">第八个属性值的类型 / The type of the eighth property value</typeparam>
247+ /// <param name="messageTemplate">消息模板 / The message template</param>
248+ /// <param name="propertyValue0">第一个属性值 / The first property value</param>
249+ /// <param name="propertyValue1">第二个属性值 / The second property value</param>
250+ /// <param name="propertyValue2">第三个属性值 / The third property value</param>
251+ /// <param name="propertyValue3">第四个属性值 / The fourth property value</param>
252+ /// <param name="propertyValue4">第五个属性值 / The fifth property value</param>
253+ /// <param name="propertyValue5">第六个属性值 / The sixth property value</param>
254+ /// <param name="propertyValue6">第七个属性值 / The seventh property value</param>
255+ /// <param name="propertyValue7">第八个属性值 / The eighth property value</param>
256+ /// <remarks>
257+ /// Uses structured logging to record error level messages with eight properties.
258+ /// </remarks>
259+ public static void Error < T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 > ( string messageTemplate , T0 propertyValue0 , T1 propertyValue1 , T2 propertyValue2 , T3 propertyValue3 , T4 propertyValue4 , T5 propertyValue5 , T6 propertyValue6 , T7 propertyValue7 )
260+ {
261+ GetLogger ( ) . Error ( messageTemplate , propertyValue0 , propertyValue1 , propertyValue2 , propertyValue3 , propertyValue4 , propertyValue5 , propertyValue6 , propertyValue7 ) ;
262+ }
263+
144264 /// <summary>
145265 /// 记录带有异常的错误消息模板。
146266 /// </summary>
@@ -205,6 +325,110 @@ public static void Error<T0, T1, T2>(Exception exception, string messageTemplate
205325 GetLogger ( ) . Error ( exception , messageTemplate , propertyValue0 , propertyValue1 , propertyValue2 ) ;
206326 }
207327
328+ /// <summary>
329+ /// 记录带有异常和四个属性值的错误消息模板。
330+ /// </summary>
331+ /// <typeparam name="T0">第一个属性值的类型 / The type of the first property value</typeparam>
332+ /// <typeparam name="T1">第二个属性值的类型 / The type of the second property value</typeparam>
333+ /// <typeparam name="T2">第三个属性值的类型 / The type of the third property value</typeparam>
334+ /// <typeparam name="T3">第四个属性值的类型 / The type of the fourth property value</typeparam>
335+ /// <param name="exception">异常信息 / The exception information</param>
336+ /// <param name="messageTemplate">消息模板 / The message template</param>
337+ /// <param name="propertyValue0">第一个属性值 / The first property value</param>
338+ /// <param name="propertyValue1">第二个属性值 / The second property value</param>
339+ /// <param name="propertyValue2">第三个属性值 / The third property value</param>
340+ /// <param name="propertyValue3">第四个属性值 / The fourth property value</param>
341+ /// <remarks>
342+ /// Records error level exception information and message template with four properties.
343+ /// </remarks>
344+ public static void Error < T0 , T1 , T2 , T3 > ( Exception exception , string messageTemplate , T0 propertyValue0 , T1 propertyValue1 , T2 propertyValue2 , T3 propertyValue3 )
345+ {
346+ GetLogger ( ) . Error ( exception , messageTemplate , propertyValue0 , propertyValue1 , propertyValue2 , propertyValue3 ) ;
347+ }
348+
349+ /// <summary>
350+ /// 记录带有异常和五个属性值的错误消息模板。
351+ /// </summary>
352+ /// <typeparam name="T0">第一个属性值的类型 / The type of the first property value</typeparam>
353+ /// <typeparam name="T1">第二个属性值的类型 / The type of the second property value</typeparam>
354+ /// <typeparam name="T2">第三个属性值的类型 / The type of the third property value</typeparam>
355+ /// <typeparam name="T3">第四个属性值的类型 / The type of the fourth property value</typeparam>
356+ /// <typeparam name="T4">第五个属性值的类型 / The type of the fifth property value</typeparam>
357+ /// <param name="exception">异常信息 / The exception information</param>
358+ /// <param name="messageTemplate">消息模板 / The message template</param>
359+ /// <param name="propertyValue0">第一个属性值 / The first property value</param>
360+ /// <param name="propertyValue1">第二个属性值 / The second property value</param>
361+ /// <param name="propertyValue2">第三个属性值 / The third property value</param>
362+ /// <param name="propertyValue3">第四个属性值 / The fourth property value</param>
363+ /// <param name="propertyValue4">第五个属性值 / The fifth property value</param>
364+ /// <remarks>
365+ /// Records error level exception information and message template with five properties.
366+ /// </remarks>
367+ public static void Error < T0 , T1 , T2 , T3 , T4 > ( Exception exception , string messageTemplate , T0 propertyValue0 , T1 propertyValue1 , T2 propertyValue2 , T3 propertyValue3 , T4 propertyValue4 )
368+ {
369+ GetLogger ( ) . Error ( exception , messageTemplate , propertyValue0 , propertyValue1 , propertyValue2 , propertyValue3 , propertyValue4 ) ;
370+ }
371+
372+ /// <summary>
373+ /// 记录带有异常和六个属性值的错误消息模板。
374+ /// </summary>
375+ /// <typeparam name="T0">第一个属性值的类型 / The type of the first property value</typeparam>
376+ /// <typeparam name="T1">第二个属性值的类型 / The type of the second property value</typeparam>
377+ /// <typeparam name="T2">第三个属性值的类型 / The type of the third property value</typeparam>
378+ /// <typeparam name="T3">第四个属性值的类型 / The type of the fourth property value</typeparam>
379+ /// <typeparam name="T4">第五个属性值的类型 / The type of the fifth property value</typeparam>
380+ /// <typeparam name="T5">第六个属性值的类型 / The type of the sixth property value</typeparam>
381+ /// <param name="exception">异常信息 / The exception information</param>
382+ /// <param name="messageTemplate">消息模板 / The message template</param>
383+ /// <param name="propertyValue0">第一个属性值 / The first property value</param>
384+ /// <param name="propertyValue1">第二个属性值 / The second property value</param>
385+ /// <param name="propertyValue2">第三个属性值 / The third property value</param>
386+ /// <param name="propertyValue3">第四个属性值 / The fourth property value</param>
387+ /// <param name="propertyValue4">第五个属性值 / The fifth property value</param>
388+ /// <param name="propertyValue5">第六个属性值 / The sixth property value</param>
389+ /// <remarks>
390+ /// Records error level exception information and message template with six properties.
391+ /// </remarks>
392+ public static void Error < T0 , T1 , T2 , T3 , T4 , T5 > ( Exception exception , string messageTemplate , T0 propertyValue0 , T1 propertyValue1 , T2 propertyValue2 , T3 propertyValue3 , T4 propertyValue4 , T5 propertyValue5 )
393+ {
394+ GetLogger ( ) . Error ( exception , messageTemplate , propertyValue0 , propertyValue1 , propertyValue2 , propertyValue3 , propertyValue4 , propertyValue5 ) ;
395+ }
396+
397+ /// <summary>
398+ /// 记录带有异常和七个属性值的错误消息模板。
399+ /// </summary>
400+ /// <typeparam name="T0">第一个属性值的类型 / The type of the first property value</typeparam>
401+ /// <typeparam name="T1">第二个属性值的类型 / The type of the second property value</typeparam>
402+ /// <typeparam name="T2">第三个属性值的类型 / The type of the third property value</typeparam>
403+ /// <typeparam name="T3">第四个属性值的类型 / The type of the fourth property value</typeparam>
404+ /// <typeparam name="T4">第五个属性值的类型 / The type of the fifth property value</typeparam>
405+ /// <typeparam name="T5">第六个属性值的类型 / The type of the sixth property value</typeparam>
406+ /// <typeparam name="T6">第七个属性值的类型 / The type of the seventh property value</typeparam>
407+ /// <param name="exception">异常信息 / The exception information</param>
408+ /// <param name="messageTemplate">消息模板 / The message template</param>
409+ /// <param name="propertyValue0">第一个属性值 / The first property value</param>
410+ /// <param name="propertyValue1">第二个属性值 / The second property value</param>
411+ /// <param name="propertyValue2">第三个属性值 / The third property value</param>
412+ /// <param name="propertyValue3">第四个属性值 / The fourth property value</param>
413+ /// <param name="propertyValue4">第五个属性值 / The fifth property value</param>
414+ /// <param name="propertyValue5">第六个属性值 / The sixth property value</param>
415+ /// <param name="propertyValue6">第七个属性值 / The seventh property value</param>
416+ /// <remarks>
417+ /// Records error level exception information and message template with seven properties.
418+ /// </remarks>
419+ public static void Error < T0 , T1 , T2 , T3 , T4 , T5 , T6 > ( Exception exception , string messageTemplate , T0 propertyValue0 , T1 propertyValue1 , T2 propertyValue2 , T3 propertyValue3 , T4 propertyValue4 , T5 propertyValue5 , T6 propertyValue6 )
420+ {
421+ GetLogger ( ) . Error ( exception , messageTemplate , propertyValue0 , propertyValue1 , propertyValue2 , propertyValue3 , propertyValue4 , propertyValue5 , propertyValue6 ) ;
422+ }
423+
424+ /// <summary>
425+ /// 记录带有异常和八个属性值的错误消息模板。
426+ /// </summary>
427+ public static void Error < T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 > ( Exception exception , string messageTemplate , T0 propertyValue0 , T1 propertyValue1 , T2 propertyValue2 , T3 propertyValue3 , T4 propertyValue4 , T5 propertyValue5 , T6 propertyValue6 , T7 propertyValue7 )
428+ {
429+ GetLogger ( ) . Error ( exception , messageTemplate , propertyValue0 , propertyValue1 , propertyValue2 , propertyValue3 , propertyValue4 , propertyValue5 , propertyValue6 , propertyValue7 ) ;
430+ }
431+
208432 /// <summary>
209433 /// 记录带有异常和格式参数的错误消息模板。
210434 /// </summary>
0 commit comments