Search Results for

    Show / Hide Table of Contents

    Class ExtensionLogger

    Inheritance
    System.Object
    ExtensionLogger
    Implements
    Microsoft.Extensions.Logging.ILogger
    Namespace: DirectScale.Disco.Extension.Middleware.Logging
    Assembly: DirectScale.Disco.Extension.Abstractions.dll
    Syntax
    public class ExtensionLogger : Object, ILogger

    Constructors

    ExtensionLogger(String, Func<ExtensionLoggerConfiguration>, Action<String, LogLevel, EventId, String>)

    Declaration
    public ExtensionLogger(string name, Func<ExtensionLoggerConfiguration> getCurrentConfig, Action<string, LogLevel, EventId, string> postMessage)
    Parameters
    Type Name Description
    System.String name
    System.Func<ExtensionLoggerConfiguration> getCurrentConfig
    System.Action<System.String, Microsoft.Extensions.Logging.LogLevel, Microsoft.Extensions.Logging.EventId, System.String> postMessage

    Methods

    BeginScope<TState>(TState)

    Declaration
    public IDisposable BeginScope<TState>(TState state)
    Parameters
    Type Name Description
    TState state
    Returns
    Type Description
    System.IDisposable
    Type Parameters
    Name Description
    TState

    IsEnabled(LogLevel)

    Declaration
    public bool IsEnabled(LogLevel logLevel)
    Parameters
    Type Name Description
    Microsoft.Extensions.Logging.LogLevel logLevel
    Returns
    Type Description
    System.Boolean

    Log<TState>(LogLevel, EventId, TState, Exception, Func<TState, Exception, String>)

    Declaration
    public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
    Parameters
    Type Name Description
    Microsoft.Extensions.Logging.LogLevel logLevel
    Microsoft.Extensions.Logging.EventId eventId
    TState state
    System.Exception exception
    System.Func<TState, System.Exception, System.String> formatter
    Type Parameters
    Name Description
    TState

    Implements

    Microsoft.Extensions.Logging.ILogger
    In This Article
    Back to top Copyright © 2022 DirectScale
    Generated by DocFX