Search Results for

    Show / Hide Table of Contents

    Class LogUtil

    Utility class for ImageVault internal logging

    Inheritance
    System.Object
    LogUtil
    Implements
    System.IDisposable
    Namespace: ImageVault.Common.Extensions
    Assembly: ImageVault.Common.dll
    Syntax
    public class LogUtil : Object
    Remarks

    Activate internal logging by setting EnableDebugLogging to true.

    Will be removed in the future. Only used for backward compability

    Constructors

    LogUtil(IOptions<ImageVaultCommonOptions>, ILoggerFactory)

    Creates the LogUtil instance

    Declaration
    public LogUtil(IOptions<ImageVaultCommonOptions> options, ILoggerFactory loggerFactory)
    Parameters
    Type Name Description
    Microsoft.Extensions.Options.IOptions<ImageVaultCommonOptions> options
    Microsoft.Extensions.Logging.ILoggerFactory loggerFactory

    Properties

    Enabled

    Is logging enabled or not

    Declaration
    public static bool Enabled { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    Dispose()

    Declaration
    public void Dispose()

    Logger(String)

    Creates a logger for the supplied type

    Declaration
    public static ILogger Logger(string category)
    Parameters
    Type Name Description
    System.String category
    Returns
    Type Description
    Microsoft.Extensions.Logging.ILogger

    Logger<T>()

    Creates a logger for the supplied type

    Declaration
    public static ILogger Logger<T>()
    Returns
    Type Description
    Microsoft.Extensions.Logging.ILogger
    Type Parameters
    Name Description
    T

    Implements

    System.IDisposable

    Extension Methods

    EnumExtensions.GetNames<TEnum>(TEnum)
    In This Article
    Back to top (c) Meriworks 2002-2022