DbLoggerCategory Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An API for getting logger categories in an Intellisense/tab-completion friendly manner.
public static class DbLoggerCategory
type DbLoggerCategory = class
Public Class DbLoggerCategory
- Inheritance
-
DbLoggerCategory
Remarks
Get an Entity Framework Core logger category using its Name property. For example, LoggerCategory.Database.Sql.Name
.
Use these types with IDiagnosticsLogger<TLoggerCategory> or IDiagnosticsLogger<TLoggerCategory> to create a logger.
See Logging, events, and diagnostics for more information and examples.
Fields
Name |
The root/prefix for all Entity Framework categories. |
Applies to
Entity Framework