File tree 3 files changed +5
-3
lines changed
docs/logs/complex-objects
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 81
81
<PackageVersion Include =" Microsoft.Extensions.Hosting" Version =" [8.0.0,)" />
82
82
<PackageVersion Include =" Microsoft.Extensions.Http" Version =" [8.0.0,)" />
83
83
<PackageVersion Include =" Microsoft.Extensions.Logging.Abstractions" Version =" [8.0.0,)" />
84
- <PackageVersion Include =" Microsoft.Extensions.Telemetry.Abstractions" Version =" [8.1 .0,)" />
84
+ <PackageVersion Include =" Microsoft.Extensions.Telemetry.Abstractions" Version =" [8.2 .0,)" />
85
85
<PackageVersion Include =" Microsoft.NETFramework.ReferenceAssemblies" Version =" [1.0.3,2.0)" />
86
86
<PackageVersion Include =" Microsoft.NET.Test.Sdk" Version =" [17.8.0,18.0.0)" />
87
87
<PackageVersion Include =" Microsoft.SourceLink.GitHub" Version =" [1.1.1,2.0)" />
Original file line number Diff line number Diff line change 29
29
// This will flush the remaining logs and shutdown the logging pipeline.
30
30
loggerFactory . Dispose ( ) ;
31
31
32
- public static partial class ApplicationLogs
32
+ internal static partial class LoggerExtensions
33
33
{
34
34
[ LoggerMessage ( LogLevel . Critical ) ]
35
35
public static partial void FoodRecallNotice (
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ that the following code is added which uses the `LogPropertiesAttribute` to log
49
49
the ` FoodRecallNotice ` object:
50
50
51
51
``` csharp
52
- public static partial class ApplicationLogs
52
+ internal static partial class LoggerExtensions
53
53
{
54
54
[LoggerMessage (LogLevel .Critical )]
55
55
public static partial void FoodRecallNotice (
@@ -89,6 +89,8 @@ LogRecord.Attributes (Key:Value):
89
89
ProductType: Food & Beverages
90
90
ProductDescription: Salads
91
91
BrandName: Contoso
92
+ LogRecord.EventId: 252550133
93
+ LogRecord.EventName: FoodRecallNotice
92
94
```
93
95
94
96
> [ !NOTE]
You can’t perform that action at this time.
0 commit comments