Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IProfilingLogger

    Defines the profiling logging service.

    Namespace: Umbraco.Cms.Core.Logging
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IProfilingLogger

    Methods

    View Source

    DebugDuration(Type, string, string, string?, int, object[]?, object[]?, object[]?)

    Profiles an action and log as debug messages.

    Declaration
    DisposableTimer? DebugDuration(Type loggerType, string startMessage, string completeMessage, string? failMessage = null, int thresholdMilliseconds = 0, object[]? startMessageArgs = null, object[]? endMessageArgs = null, object[]? failMessageArgs = null)
    Parameters
    Type Name Description
    Type loggerType
    string startMessage
    string completeMessage
    string failMessage
    int thresholdMilliseconds
    object[] startMessageArgs
    object[] endMessageArgs
    object[] failMessageArgs
    Returns
    Type Description
    DisposableTimer
    View Source

    DebugDuration<T>(string, object[]?)

    Profiles an action and log as debug messages.

    Declaration
    DisposableTimer? DebugDuration<T>(string startMessage, object[]? startMessageArgs = null)
    Parameters
    Type Name Description
    string startMessage
    object[] startMessageArgs
    Returns
    Type Description
    DisposableTimer
    Type Parameters
    Name Description
    T
    View Source

    DebugDuration<T>(string, string, string?, int, object[]?, object[]?, object[]?)

    Profiles an action and log as debug messages.

    Declaration
    DisposableTimer? DebugDuration<T>(string startMessage, string completeMessage, string? failMessage = null, int thresholdMilliseconds = 0, object[]? startMessageArgs = null, object[]? endMessageArgs = null, object[]? failMessageArgs = null)
    Parameters
    Type Name Description
    string startMessage
    string completeMessage
    string failMessage
    int thresholdMilliseconds
    object[] startMessageArgs
    object[] endMessageArgs
    object[] failMessageArgs
    Returns
    Type Description
    DisposableTimer
    Type Parameters
    Name Description
    T
    View Source

    IsEnabled(LogLevel)

    Checks if the given logLevel is enabled.

    Declaration
    bool IsEnabled(LogLevel logLevel)
    Parameters
    Type Name Description
    LogLevel logLevel

    Level to be checked.

    Returns
    Type Description
    bool

    true if enabled.

    View Source

    TraceDuration(Type, string, string, string?, object[]?, object[]?, object[]?)

    Profiles an action and log as information messages.

    Declaration
    DisposableTimer TraceDuration(Type loggerType, string startMessage, string completeMessage, string? failMessage = null, object[]? startMessageArgs = null, object[]? endMessageArgs = null, object[]? failMessageArgs = null)
    Parameters
    Type Name Description
    Type loggerType
    string startMessage
    string completeMessage
    string failMessage
    object[] startMessageArgs
    object[] endMessageArgs
    object[] failMessageArgs
    Returns
    Type Description
    DisposableTimer
    View Source

    TraceDuration<T>(string, object[]?)

    Profiles an action and log as information messages.

    Declaration
    DisposableTimer TraceDuration<T>(string startMessage, object[]? startMessageArgs = null)
    Parameters
    Type Name Description
    string startMessage
    object[] startMessageArgs
    Returns
    Type Description
    DisposableTimer
    Type Parameters
    Name Description
    T
    View Source

    TraceDuration<T>(string, string, string?, object[]?, object[]?, object[]?)

    Profiles an action and log as information messages.

    Declaration
    DisposableTimer TraceDuration<T>(string startMessage, string completeMessage, string? failMessage = null, object[]? startMessageArgs = null, object[]? endMessageArgs = null, object[]? failMessageArgs = null)
    Parameters
    Type Name Description
    string startMessage
    string completeMessage
    string failMessage
    object[] startMessageArgs
    object[] endMessageArgs
    object[] failMessageArgs
    Returns
    Type Description
    DisposableTimer
    Type Parameters
    Name Description
    T
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX