Search Results for

    Show / Hide Table of Contents
    View Source

    Class ProfilingLogger

    Provides logging and profiling services.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Logging
    Assembly: Umbraco.Core.dll
    Syntax
    public sealed class ProfilingLogger : IProfilingLogger

    Constructors

    View Source

    ProfilingLogger(ILogger, IProfiler)

    Initializes a new instance of the ProfilingLogger class.

    Declaration
    public ProfilingLogger(ILogger logger, IProfiler profiler)
    Parameters
    Type Name Description
    ILogger logger
    IProfiler profiler
    View Source

    ProfilingLogger(ILogger<ProfilingLogger>, IProfiler)

    Initializes a new instance of the ProfilingLogger class.

    Declaration
    public ProfilingLogger(ILogger<ProfilingLogger> logger, IProfiler profiler)
    Parameters
    Type Name Description
    ILogger<ProfilingLogger> logger
    IProfiler profiler

    Properties

    View Source

    Logger

    Gets the underlying implementation.

    Declaration
    public ILogger Logger { get; }
    Property Value
    Type Description
    ILogger
    View Source

    Profiler

    Gets the underlying IProfiler implementation.

    Declaration
    public IProfiler Profiler { get; }
    Property Value
    Type Description
    IProfiler

    Methods

    View Source

    DebugDuration(Type, String, String, String, Int32, Object[], Object[], Object[])

    Declaration
    public 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
    System.String startMessage
    System.String completeMessage
    System.String failMessage
    System.Int32 thresholdMilliseconds
    System.Object[] startMessageArgs
    System.Object[] endMessageArgs
    System.Object[] failMessageArgs
    Returns
    Type Description
    DisposableTimer
    View Source

    DebugDuration<T>(String, Object[])

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

    DebugDuration<T>(String, String, String, Int32, Object[], Object[], Object[])

    Declaration
    public 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
    System.String startMessage
    System.String completeMessage
    System.String failMessage
    System.Int32 thresholdMilliseconds
    System.Object[] startMessageArgs
    System.Object[] endMessageArgs
    System.Object[] failMessageArgs
    Returns
    Type Description
    DisposableTimer
    Type Parameters
    Name Description
    T
    View Source

    IsEnabled(Extensions.Logging.LogLevel)

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

    IsEnabled(LogLevel)

    Checks if the given logLevel is enabled.

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

    Level to be checked.

    Returns
    Type Description
    System.Boolean

    true if enabled.

    View Source

    LogCritical(Exception, String, Object[])

    Declaration
    public void LogCritical(Exception exception, string messageTemplate, params object[] propertyValues)
    Parameters
    Type Name Description
    Exception exception
    System.String messageTemplate
    System.Object[] propertyValues
    View Source

    LogCritical(String, Object[])

    Declaration
    public void LogCritical(string messageTemplate, params object[] propertyValues)
    Parameters
    Type Name Description
    System.String messageTemplate
    System.Object[] propertyValues
    View Source

    LogDebug(String, Object[])

    Declaration
    public void LogDebug(string messageTemplate, params object[] propertyValues)
    Parameters
    Type Name Description
    System.String messageTemplate
    System.Object[] propertyValues
    View Source

    LogError(Exception, String, Object[])

    Declaration
    public void LogError(Exception exception, string messageTemplate, params object[] propertyValues)
    Parameters
    Type Name Description
    Exception exception
    System.String messageTemplate
    System.Object[] propertyValues
    View Source

    LogError(String, Object[])

    Declaration
    public void LogError(string messageTemplate, params object[] propertyValues)
    Parameters
    Type Name Description
    System.String messageTemplate
    System.Object[] propertyValues
    View Source

    LogInformation(String, Object[])

    Declaration
    public void LogInformation(string messageTemplate, params object[] propertyValues)
    Parameters
    Type Name Description
    System.String messageTemplate
    System.Object[] propertyValues
    View Source

    LogTrace(String, Object[])

    Declaration
    public void LogTrace(string messageTemplate, params object[] propertyValues)
    Parameters
    Type Name Description
    System.String messageTemplate
    System.Object[] propertyValues
    View Source

    LogWarning(Exception, String, Object[])

    Declaration
    public void LogWarning(Exception exception, string messageTemplate, params object[] propertyValues)
    Parameters
    Type Name Description
    Exception exception
    System.String messageTemplate
    System.Object[] propertyValues
    View Source

    LogWarning(String, Object[])

    Declaration
    public void LogWarning(string messageTemplate, params object[] propertyValues)
    Parameters
    Type Name Description
    System.String messageTemplate
    System.Object[] propertyValues
    View Source

    TraceDuration(Type, String, String, String, Object[], Object[], Object[])

    Declaration
    public 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
    System.String startMessage
    System.String completeMessage
    System.String failMessage
    System.Object[] startMessageArgs
    System.Object[] endMessageArgs
    System.Object[] failMessageArgs
    Returns
    Type Description
    DisposableTimer
    View Source

    TraceDuration<T>(String, Object[])

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

    TraceDuration<T>(String, String, String, Object[], Object[], Object[])

    Declaration
    public DisposableTimer TraceDuration<T>(string startMessage, string completeMessage, string failMessage = null, object[] startMessageArgs = null, object[] endMessageArgs = null, object[] failMessageArgs = null)
    Parameters
    Type Name Description
    System.String startMessage
    System.String completeMessage
    System.String failMessage
    System.Object[] startMessageArgs
    System.Object[] endMessageArgs
    System.Object[] failMessageArgs
    Returns
    Type Description
    DisposableTimer
    Type Parameters
    Name Description
    T
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ProfilingLogger(ILogger, IProfiler)
      • ProfilingLogger(ILogger<ProfilingLogger>, IProfiler)
    • Properties
      • Logger
      • Profiler
    • Methods
      • DebugDuration(Type, String, String, String, Int32, Object[], Object[], Object[])
      • DebugDuration<T>(String, Object[])
      • DebugDuration<T>(String, String, String, Int32, Object[], Object[], Object[])
      • IsEnabled(Extensions.Logging.LogLevel)
      • IsEnabled(LogLevel)
      • LogCritical(Exception, String, Object[])
      • LogCritical(String, Object[])
      • LogDebug(String, Object[])
      • LogError(Exception, String, Object[])
      • LogError(String, Object[])
      • LogInformation(String, Object[])
      • LogTrace(String, Object[])
      • LogWarning(Exception, String, Object[])
      • LogWarning(String, Object[])
      • TraceDuration(Type, String, String, String, Object[], Object[], Object[])
      • TraceDuration<T>(String, Object[])
      • TraceDuration<T>(String, String, String, Object[], Object[], Object[])
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX