Zdieľať cez


FakeLoggerProvider Class

Definition

Provides fake loggers.

public ref class FakeLoggerProvider : IDisposable, Microsoft::Extensions::Logging::ILoggerProvider, Microsoft::Extensions::Logging::ISupportExternalScope
[Microsoft.Extensions.Logging.ProviderAlias("Fake")]
public class FakeLoggerProvider : IDisposable, Microsoft.Extensions.Logging.ILoggerProvider, Microsoft.Extensions.Logging.ISupportExternalScope
[<Microsoft.Extensions.Logging.ProviderAlias("Fake")>]
type FakeLoggerProvider = class
    interface ILoggerProvider
    interface IDisposable
    interface ISupportExternalScope
Public Class FakeLoggerProvider
Implements IDisposable, ILoggerProvider, ISupportExternalScope
Inheritance
FakeLoggerProvider
Attributes
Implements

Constructors

FakeLoggerProvider(FakeLogCollector)

Initializes a new instance of the FakeLoggerProvider class.

Properties

Collector

Gets the log record collector for all loggers created by this provider.

Methods

CreateLogger(String)

Creates a new FakeLogger instance.

Dispose()

Cleans up resources held by this object.

Dispose(Boolean)

Cleans up resources held by this object.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Finalize()

Finalizes an instance of the FakeLoggerProvider class.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
SetScopeProvider(IExternalScopeProvider)

Sets external scope information source for logger provider.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ILoggerProvider.CreateLogger(String)

Creates a new ILogger instance.

Applies to