Table of Contents

Class ScopedLoggerFactory

Namespace
Microsoft.EntityFrameworkCore.Diagnostics.Internal
Assembly
Microsoft.EntityFrameworkCore.dll

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public class ScopedLoggerFactory : ILoggerFactory, IDisposable
Inheritance
ScopedLoggerFactory
Implements
Inherited Members

Constructors

ScopedLoggerFactory(ILoggerFactory, bool)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public ScopedLoggerFactory(ILoggerFactory loggerFactory, bool dispose)

Parameters

loggerFactory ILoggerFactory
dispose bool

Methods

AddProvider(ILoggerProvider)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual void AddProvider(ILoggerProvider provider)

Parameters

provider ILoggerProvider

Create(IServiceProvider, IDbContextOptions?)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public static ScopedLoggerFactory Create(IServiceProvider internalServiceProvider, IDbContextOptions? contextOptions)

Parameters

internalServiceProvider IServiceProvider
contextOptions IDbContextOptions

Returns

ScopedLoggerFactory

CreateLogger(string)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual ILogger CreateLogger(string categoryName)

Parameters

categoryName string

Returns

ILogger

Dispose()

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual void Dispose()