Repository navigation
Docs for logging, events, and diagnostics - #2787
Conversation
4b194ad to
777e0c0
Compare
|
Can you remove my mention in the commit message? Github is showering me with notifications. 😢 |
roji
left a comment
There was a problem hiding this comment.
There is much awesomeness here 🚀
| Resolving EF Core events is a two-step process. First, an [observer](/dotnet/standard/events/observer-design-pattern) for `DiagnosticListener` itself must be created: | ||
|
|
||
| <!-- | ||
| public class DiagnosticObserver : IObserver<DiagnosticListener> |
There was a problem hiding this comment.
We may want to show the simplified/minimal sample as in the DiagnosticSource docs, without a special Observer type.
There was a problem hiding this comment.
Not sure if I fully understand why things are designed this way, but that "simplied" example does not look simpler to me.
| --> | ||
| [!code-csharp[AuditContext](../../../../samples/core/Miscellaneous/SaveChangesInterception/AuditContext.cs?name=AuditContext)] | ||
|
|
||
| #### The interceptor |
There was a problem hiding this comment.
Consider moving this up before the actual code sample of the interceptor
There was a problem hiding this comment.
I don't understand which part you want moving to where...
**No TOC yet since we need to decide what to do with `Fundamentals`. @smitpatel I do not intend to merge this way.** * Fixes #2615: Add information on controlling suppressing warnings and otherwise configuring EventIds * Fixes #2557: Support logging on DB level #2557 * Fixes #2770: Add entry in TOC for logging/interceptors * Fixes #583: Document how to use DiagnosticSource/DiagnosticListener * Fixes #673: Document EnableSensitiveDataLogging * Fixes #1913: Interception of database operations: InterceptionResult or InterceptionResult<DbDataReader>? * Fixes #1543: Document database interceptors with examples * Fixes #955: Document EnableRichDataErrorHandling * Fixes #661: EF Core 2.1: document state change events
777e0c0 to
524bdc5
Compare
b8a8af3 to
bab3fb7
Compare
|
@dotnet/efteam I believe this is now ready to merge--I will do so today. (I will make any uncontroversial minor updates from reviews. Any other suggested changes will be tracked by a new issue so I can get this merged.) |
No TOC yet since we need to decide what to do with
Fundamentals. smitpatel I do not intend to merge this way.