View Source
  Class ProfilingLogger
  
  Provides logging and profiling services.
    Inheritance
      System.Object
      
   
  
  Assembly: Umbraco.Core.dll
  Syntax
  
    public sealed class ProfilingLogger : IProfilingLogger
   
  Constructors
  
  
    View Source
  
  ProfilingLogger(ILogger, IProfiler)
  
  
  Declaration
  
    public ProfilingLogger(ILogger logger, IProfiler profiler)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | ILogger | logger |  | 
      
        | IProfiler | profiler |  | 
    
  
  
    View Source
  
  ProfilingLogger(ILogger<ProfilingLogger>, IProfiler)
  
  
  Declaration
  
    public ProfilingLogger(ILogger<ProfilingLogger> logger, IProfiler profiler)
   
  Parameters
  
  Properties
  
  
    View Source
  
  Logger
  Gets the underlying  implementation.
Declaration
  
    public ILogger Logger { get; }
   
  Property Value
  
  
    View Source
  
  Profiler
  Gets the underlying IProfiler implementation.
Declaration
  
    public IProfiler Profiler { get; }
   
  Property Value
  
  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
  
  
    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 Parameters
  
  
    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 Parameters
  
  
    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
  
  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
  
  
  
  
  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
  
  
    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 Parameters
  
  
    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 Parameters