इसके माध्यम से साझा किया गया


TraceSourceLoggerProvider Class

Definition

Provides an ILoggerFactory based on System.Diagnostics.TraceSource.

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

Constructors

TraceSourceLoggerProvider(SourceSwitch, TraceListener)

Initializes a new instance of the TraceSourceLoggerProvider class.

TraceSourceLoggerProvider(SourceSwitch)

Initializes a new instance of the TraceSourceLoggerProvider class.

Methods

CreateLogger(String)

Creates a new ILogger for the given component name.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Equals(Object)

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

(Inherited from Object)
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)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to