Commit 4d96eb0
committed
Update EventIds to be unique and be consistent with ILogger/DiagnosticSource
Issues dotnet#218 dotnet#6802
(Doesn't cover dotnet#6946 - Template-based format strings.)
This change introduces unique event IDs and a pattern such that every time an event is logged it is sent to both ILogger and DiagnosticSource. Specifically:
* EventIds are globally unique across core/relational/any given provider. (As discussed in dotnet#218)
* The same EventIds are used for ILogger and DiagnosticSource (ILogger uses the int/name tuple, DiagnosticSource uses just the name)
* EventIds align with logger categories
* Automated tests for the EventId/LoggerExtensions pattern--every EventId has a LoggerExtension method that works as expected.
* Warnings configuration is updated to use the new event ids
* Updated IsEnabled to handle warnings as errors and ignored warnings more transparently.1 parent 8e0c0b2 commit 4d96eb0
156 files changed
Lines changed: 6027 additions & 2455 deletions
File tree
- src
- EFCore.Design
- Design/Internal
- Infrastructure
- Internal
- Migrations/Design
- Scaffolding/Internal
- EFCore.InMemory
- Extensions/Internal
- Infrastructure
- Storage/Internal
- EFCore.Relational.Design.Specification.Tests/ReverseEngineering
- EFCore.Relational.Design
- Infrastructure
- Internal
- Metadata
- Properties
- EFCore.Relational.Specification.Tests
- EFCore.Relational
- Infrastructure
- Internal
- Migrations/Internal
- Properties
- Query
- ExpressionTranslators
- Internal
- Storage
- Internal
- EFCore.Specification.Tests
- EFCore.SqlServer.Design
- Infrastructure
- Internal
- Properties
- EFCore.SqlServer
- Infrastructure
- Internal
- Storage/Internal
- EFCore.Sqlite.Core
- Infrastructure
- Internal
- Storage/Internal
- EFCore.Sqlite.Design
- Infrastructure
- Internal
- Properties
- EFCore
- Extensions/Internal
- Infrastructure
- Internal
- Properties
- Query
- ExpressionVisitors/Internal
- Internal
- Storage
- test
- EFCore.Design.Tests
- Design/Internal
- Migrations/Design
- EFCore.InMemory.FunctionalTests
- EFCore.InMemory.Tests
- EFCore.Relational.Design.Tests
- EFCore.Relational.Tests
- Migrations
- Storage
- TestUtilities
- FakeProvider
- Update
- EFCore.SqlServer.Design.FunctionalTests
- ReverseEngineering
- EFCore.SqlServer.Design.Tests
- EFCore.SqlServer.FunctionalTests
- Utilities
- EFCore.SqlServer.Tests
- Migrations
- Update
- EFCore.Sqlite.Design.FunctionalTests
- EFCore.Sqlite.Design.Tests
- EFCore.Sqlite.FunctionalTests
- EFCore.Sqlite.Tests
- Migrations
- EFCore.Tests
- Infrastructure
- Metadata/Internal
- ModelBuilderTest
- TestUtilities
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| 97 | + | |
| 98 | + | |
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | | - | |
59 | | - | |
| 57 | + | |
| 58 | + | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
7 | 20 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
23 | 136 | | |
24 | 137 | | |
0 commit comments