TraceSourceFactoryExtensions TraceSourceFactoryExtensions Class

Syntax

Declaration

public static class TraceSourceFactoryExtensionsPublic Module TraceSourceFactoryExtensions

Inheritance Hierarchy

  • System.Object
    System.Object
  • TraceSourceFactoryExtensions
    TraceSourceFactoryExtensions

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Methods summary

Methods

  • AddTraceSource(ILoggerFactory, SourceSwitch)
    AddTraceSource(ILoggerFactory, SourceSwitch)
    public static ILoggerFactory AddTraceSource(this ILoggerFactory factory, SourceSwitch sourceSwitch)<ExtensionAttribute>
    Public Shared Function AddTraceSource(factory As ILoggerFactory, sourceSwitch As SourceSwitch) As ILoggerFactory

    Parameters

    Returns

  • AddTraceSource(ILoggerFactory, SourceSwitch, TraceListener)
    AddTraceSource(ILoggerFactory, SourceSwitch, TraceListener)
    public static ILoggerFactory AddTraceSource(this ILoggerFactory factory, SourceSwitch sourceSwitch, TraceListener listener)<ExtensionAttribute>
    Public Shared Function AddTraceSource(factory As ILoggerFactory, sourceSwitch As SourceSwitch, listener As TraceListener) As ILoggerFactory

    Parameters

    • factory
    • sourceSwitch
      System.Diagnostics.SourceSwitch
      System.Diagnostics.SourceSwitch
    • listener
      System.Diagnostics.TraceListener
      System.Diagnostics.TraceListener

    Returns

  • AddTraceSource(ILoggerFactory, String)
    AddTraceSource(ILoggerFactory, String)
    public static ILoggerFactory AddTraceSource(this ILoggerFactory factory, string switchName)<ExtensionAttribute>
    Public Shared Function AddTraceSource(factory As ILoggerFactory, switchName As String) As ILoggerFactory

    Parameters

    Returns

  • AddTraceSource(ILoggerFactory, String, TraceListener)
    AddTraceSource(ILoggerFactory, String, TraceListener)
    public static ILoggerFactory AddTraceSource(this ILoggerFactory factory, string switchName, TraceListener listener)<ExtensionAttribute>
    Public Shared Function AddTraceSource(factory As ILoggerFactory, switchName As String, listener As TraceListener) As ILoggerFactory

    Parameters

    • factory
    • switchName
      System.String
      System.String
    • listener
      System.Diagnostics.TraceListener
      System.Diagnostics.TraceListener

    Returns

Details

Assembly

Microsoft.Extensions.Logging.TraceSource.dll