You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
privatestaticreadonlyobjectEmptyEventId=default(EventId);// Cache boxing of empty EventId-struct
20
21
privatestaticreadonlyobjectZeroEventId=default(EventId).Id;// Cache boxing of zero EventId-Value
22
+
privatestaticreadonlyobject[]EventIdBoxing=Enumerable.Range(0,50).Select(v =>(object)v).ToArray();// Most EventIds in the ASP.NET Core Engine is below 50
Copy file name to clipboardExpand all lines: src/NLog.Extensions.Logging/Logging/NLogProviderOptions.cs
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ public class NLogProviderOptions
19
19
publicboolIgnoreEmptyEventId{get;set;}=true;
20
20
21
21
/// <summary>
22
-
/// Enable structured logging by capturing message template parameters and inject into the <see cref="LogEventInfo.Properties" />-dictionary
22
+
/// Enable structured logging by capturing message template parameters with support for "@" and "$". Enables use of ${message:raw=true}
23
23
/// </summary>
24
24
publicboolCaptureMessageTemplates{get;set;}=true;
25
25
@@ -74,6 +74,14 @@ public class NLogProviderOptions
74
74
/// <remarks>Will only attempt to load NLog-LoggingConfiguration if valid section-name, and NLog-LoggingConfiguration has not been loaded already.</remarks>
0 commit comments