Delen via


DbLoggerCategory Class

Definition

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