ConsoleLoggerExtensions ConsoleLoggerExtensions Class

Syntax

Declaration

public static class ConsoleLoggerExtensionsPublic Module ConsoleLoggerExtensions

Inheritance Hierarchy

  • System.Object
    System.Object
  • ConsoleLoggerExtensions
    ConsoleLoggerExtensions

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

Adds a console logger that is enabled for LogLevel.Information or higher.
Adds a console logger that is enabled for LogLevels of minLevel or higher.
Adds a console logger that is enabled for LogLevels of minLevel or higher.
Adds a console logger that is enabled for LogLevel.Information or higher.
Adds a console logger that is enabled as defined by the filter function.
Adds a console logger that is enabled as defined by the filter function.

Methods

  • AddConsole(ILoggerFactory)
    AddConsole(ILoggerFactory)
    Adds a console logger that is enabled for LogLevel.Information or higher.
    public static ILoggerFactory AddConsole(this ILoggerFactory factory)<ExtensionAttribute>
    Public Shared Function AddConsole(factory As ILoggerFactory) As ILoggerFactory

    Parameters

    Returns

  • AddConsole(ILoggerFactory, IConfiguration)
    AddConsole(ILoggerFactory, IConfiguration)
    public static ILoggerFactory AddConsole(this ILoggerFactory factory, IConfiguration configuration)<ExtensionAttribute>
    Public Shared Function AddConsole(factory As ILoggerFactory, configuration As IConfiguration) As ILoggerFactory

    Parameters

    Returns

  • AddConsole(ILoggerFactory, IConsoleLoggerSettings)
    AddConsole(ILoggerFactory, IConsoleLoggerSettings)
    public static ILoggerFactory AddConsole(this ILoggerFactory factory, IConsoleLoggerSettings settings)<ExtensionAttribute>
    Public Shared Function AddConsole(factory As ILoggerFactory, settings As IConsoleLoggerSettings) As ILoggerFactory

    Parameters

    Returns

  • AddConsole(ILoggerFactory, LogLevel)
    AddConsole(ILoggerFactory, LogLevel)
    Adds a console logger that is enabled for LogLevels of minLevel or higher.
    public static ILoggerFactory AddConsole(this ILoggerFactory factory, LogLevel minLevel)<ExtensionAttribute>
    Public Shared Function AddConsole(factory As ILoggerFactory, minLevel As LogLevel) As ILoggerFactory

    Parameters

    Returns

  • AddConsole(ILoggerFactory, LogLevel, Boolean)
    AddConsole(ILoggerFactory, LogLevel, Boolean)
    Adds a console logger that is enabled for LogLevels of minLevel or higher.
    public static ILoggerFactory AddConsole(this ILoggerFactory factory, LogLevel minLevel, bool includeScopes)<ExtensionAttribute>
    Public Shared Function AddConsole(factory As ILoggerFactory, minLevel As LogLevel, includeScopes As Boolean) As ILoggerFactory

    Parameters

    Returns

  • AddConsole(ILoggerFactory, Boolean)
    AddConsole(ILoggerFactory, Boolean)
    Adds a console logger that is enabled for LogLevel.Information or higher.
    public static ILoggerFactory AddConsole(this ILoggerFactory factory, bool includeScopes)<ExtensionAttribute>
    Public Shared Function AddConsole(factory As ILoggerFactory, includeScopes As Boolean) As ILoggerFactory

    Parameters

    • factory
    • includeScopes
      System.Boolean
      System.Boolean
      A value which indicates whether log scope information should be displayed in the output.

    Returns

  • AddConsole(ILoggerFactory, Func<String, LogLevel, Boolean>)
    AddConsole(ILoggerFactory, Func(Of String, LogLevel, Boolean))
    Adds a console logger that is enabled as defined by the filter function.
    public static ILoggerFactory AddConsole(this ILoggerFactory factory, Func<string, LogLevel, bool> filter)<ExtensionAttribute>
    Public Shared Function AddConsole(factory As ILoggerFactory, filter As Func(Of String, LogLevel, Boolean)) As ILoggerFactory

    Parameters

    Returns

  • AddConsole(ILoggerFactory, Func<String, LogLevel, Boolean>, Boolean)
    AddConsole(ILoggerFactory, Func(Of String, LogLevel, Boolean), Boolean)
    Adds a console logger that is enabled as defined by the filter function.
    public static ILoggerFactory AddConsole(this ILoggerFactory factory, Func<string, LogLevel, bool> filter, bool includeScopes)<ExtensionAttribute>
    Public Shared Function AddConsole(factory As ILoggerFactory, filter As Func(Of String, LogLevel, Boolean), includeScopes As Boolean) As ILoggerFactory

    Parameters

    • factory
    • filter
      System.Func<T1, T2, TResult><System.String, LogLevel, System.Boolean>
      System.Func<T1, T2, TResult>(Of System.String, LogLevel, System.Boolean)
    • includeScopes
      System.Boolean
      System.Boolean
      A value which indicates whether log scope information should be displayed in the output.

    Returns

Details

Assembly

Microsoft.Extensions.Logging.Console.dll