View Source
Class ProfilingLogger
Provides logging and profiling services.
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public sealed class ProfilingLogger : IProfilingLogger, ILogger
Constructors
View Source
ProfilingLogger(ILogger, IProfiler)
Declaration
public ProfilingLogger(ILogger logger, IProfiler profiler)
Parameters
Properties
View Source
Logger
Gets the underlying ILogger 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
Debug(Type, String)
Declaration
public void Debug(Type reporting, string message)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.String |
message |
|
View Source
Debug(Type, String, Object[])
Declaration
public void Debug(Type reporting, string messageTemplate, params object[] propertyValues)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.String |
messageTemplate |
|
System.Object[] |
propertyValues |
|
View Source
Debug<T0>(Type, String, T0)
Declaration
public void Debug<T0>(Type reporting, string messageTemplate, T0 propertyValue0)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
Type Parameters
View Source
Debug<T0, T1>(Type, String, T0, T1)
Declaration
public void Debug<T0, T1>(Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
T1 |
propertyValue1 |
|
Type Parameters
View Source
Debug<T0, T1, T2>(Type, String, T0, T1, T2)
Declaration
public void Debug<T0, T1, T2>(Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
T1 |
propertyValue1 |
|
T2 |
propertyValue2 |
|
Type Parameters
Name |
Description |
T0 |
|
T1 |
|
T2 |
|
View Source
DebugDuration(Type, String, String, String, Int32)
Declaration
public DisposableTimer DebugDuration(Type loggerType, string startMessage, string completeMessage, string failMessage = null, int thresholdMilliseconds = 0)
Parameters
Type |
Name |
Description |
System.Type |
loggerType |
|
System.String |
startMessage |
|
System.String |
completeMessage |
|
System.String |
failMessage |
|
System.Int32 |
thresholdMilliseconds |
|
Returns
View Source
DebugDuration<T>(String)
Declaration
public DisposableTimer DebugDuration<T>(string startMessage)
Parameters
Type |
Name |
Description |
System.String |
startMessage |
|
Returns
Type Parameters
View Source
DebugDuration<T>(String, String, String, Int32)
Declaration
public DisposableTimer DebugDuration<T>(string startMessage, string completeMessage, string failMessage = null, int thresholdMilliseconds = 0)
Parameters
Type |
Name |
Description |
System.String |
startMessage |
|
System.String |
completeMessage |
|
System.String |
failMessage |
|
System.Int32 |
thresholdMilliseconds |
|
Returns
Type Parameters
View Source
Error(Type, Exception)
Declaration
public void Error(Type reporting, Exception exception)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.Exception |
exception |
|
View Source
Error(Type, Exception, String)
Declaration
public void Error(Type reporting, Exception exception, string message)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.Exception |
exception |
|
System.String |
message |
|
View Source
Error(Type, Exception, String, Object[])
Declaration
public void Error(Type reporting, Exception exception, string messageTemplate, params object[] propertyValues)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.Exception |
exception |
|
System.String |
messageTemplate |
|
System.Object[] |
propertyValues |
|
View Source
Error(Type, String)
Declaration
public void Error(Type reporting, string message)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.String |
message |
|
View Source
Error(Type, String, Object[])
Declaration
public void Error(Type reporting, string messageTemplate, params object[] propertyValues)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.String |
messageTemplate |
|
System.Object[] |
propertyValues |
|
View Source
Error<T0>(Type, Exception, String, T0)
Declaration
public void Error<T0>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.Exception |
exception |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
Type Parameters
View Source
Error<T0, T1>(Type, Exception, String, T0, T1)
Declaration
public void Error<T0, T1>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.Exception |
exception |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
T1 |
propertyValue1 |
|
Type Parameters
View Source
Error<T0, T1, T2>(Type, Exception, String, T0, T1, T2)
Declaration
public void Error<T0, T1, T2>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.Exception |
exception |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
T1 |
propertyValue1 |
|
T2 |
propertyValue2 |
|
Type Parameters
Name |
Description |
T0 |
|
T1 |
|
T2 |
|
View Source
Fatal(Type, Exception)
Declaration
public void Fatal(Type reporting, Exception exception)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.Exception |
exception |
|
View Source
Fatal(Type, Exception, String)
Declaration
public void Fatal(Type reporting, Exception exception, string message)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.Exception |
exception |
|
System.String |
message |
|
View Source
Fatal(Type, Exception, String, Object[])
Declaration
public void Fatal(Type reporting, Exception exception, string messageTemplate, params object[] propertyValues)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.Exception |
exception |
|
System.String |
messageTemplate |
|
System.Object[] |
propertyValues |
|
View Source
Fatal(Type, String)
Declaration
public void Fatal(Type reporting, string message)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.String |
message |
|
View Source
Fatal(Type, String, Object[])
Declaration
public void Fatal(Type reporting, string messageTemplate, params object[] propertyValues)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.String |
messageTemplate |
|
System.Object[] |
propertyValues |
|
View Source
Fatal<T0>(Type, Exception, String, T0)
Declaration
public void Fatal<T0>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.Exception |
exception |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
Type Parameters
View Source
Fatal<T0, T1>(Type, Exception, String, T0, T1)
Declaration
public void Fatal<T0, T1>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.Exception |
exception |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
T1 |
propertyValue1 |
|
Type Parameters
View Source
Fatal<T0, T1, T2>(Type, Exception, String, T0, T1, T2)
Declaration
public void Fatal<T0, T1, T2>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.Exception |
exception |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
T1 |
propertyValue1 |
|
T2 |
propertyValue2 |
|
Type Parameters
Name |
Description |
T0 |
|
T1 |
|
T2 |
|
View Source
Info(Type, String)
Declaration
public void Info(Type reporting, string message)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.String |
message |
|
View Source
Info(Type, String, Object[])
Declaration
public void Info(Type reporting, string messageTemplate, params object[] propertyValues)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.String |
messageTemplate |
|
System.Object[] |
propertyValues |
|
View Source
Info<T0>(Type, String, T0)
Declaration
public void Info<T0>(Type reporting, string messageTemplate, T0 propertyValue0)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
Type Parameters
View Source
Info<T0, T1>(Type, String, T0, T1)
Declaration
public void Info<T0, T1>(Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
T1 |
propertyValue1 |
|
Type Parameters
View Source
Info<T0, T1, T2>(Type, String, T0, T1, T2)
Declaration
public void Info<T0, T1, T2>(Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
T1 |
propertyValue1 |
|
T2 |
propertyValue2 |
|
Type Parameters
Name |
Description |
T0 |
|
T1 |
|
T2 |
|
View Source
IsEnabled(Type, LogLevel)
Declaration
public bool IsEnabled(Type reporting, LogLevel level)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
LogLevel |
level |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
TraceDuration(Type, String, String, String)
Declaration
public DisposableTimer TraceDuration(Type loggerType, string startMessage, string completeMessage, string failMessage = null)
Parameters
Type |
Name |
Description |
System.Type |
loggerType |
|
System.String |
startMessage |
|
System.String |
completeMessage |
|
System.String |
failMessage |
|
Returns
View Source
TraceDuration<T>(String)
Declaration
public DisposableTimer TraceDuration<T>(string startMessage)
Parameters
Type |
Name |
Description |
System.String |
startMessage |
|
Returns
Type Parameters
View Source
TraceDuration<T>(String, String, String)
Declaration
public DisposableTimer TraceDuration<T>(string startMessage, string completeMessage, string failMessage = null)
Parameters
Type |
Name |
Description |
System.String |
startMessage |
|
System.String |
completeMessage |
|
System.String |
failMessage |
|
Returns
Type Parameters
View Source
Verbose(Type, String)
Declaration
public void Verbose(Type reporting, string message)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.String |
message |
|
View Source
Verbose(Type, String, Object[])
Declaration
public void Verbose(Type reporting, string messageTemplate, params object[] propertyValues)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.String |
messageTemplate |
|
System.Object[] |
propertyValues |
|
View Source
Verbose<T0>(Type, String, T0)
Declaration
public void Verbose<T0>(Type reporting, string messageTemplate, T0 propertyValue0)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
Type Parameters
View Source
Verbose<T0, T1>(Type, String, T0, T1)
Declaration
public void Verbose<T0, T1>(Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
T1 |
propertyValue1 |
|
Type Parameters
View Source
Verbose<T0, T1, T2>(Type, String, T0, T1, T2)
Declaration
public void Verbose<T0, T1, T2>(Type reporting, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
T1 |
propertyValue1 |
|
T2 |
propertyValue2 |
|
Type Parameters
Name |
Description |
T0 |
|
T1 |
|
T2 |
|
View Source
Warn(Type, Exception, String)
Declaration
public void Warn(Type reporting, Exception exception, string message)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.Exception |
exception |
|
System.String |
message |
|
View Source
Warn(Type, Exception, String, Object[])
Declaration
public void Warn(Type reporting, Exception exception, string messageTemplate, params object[] propertyValues)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.Exception |
exception |
|
System.String |
messageTemplate |
|
System.Object[] |
propertyValues |
|
View Source
Warn(Type, String)
Declaration
public void Warn(Type reporting, string message)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.String |
message |
|
View Source
Warn(Type, String, Object[])
Declaration
public void Warn(Type reporting, string messageTemplate, params object[] propertyValues)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.String |
messageTemplate |
|
System.Object[] |
propertyValues |
|
View Source
Warn<T0>(Type, Exception, String, T0)
Declaration
public void Warn<T0>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.Exception |
exception |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
Type Parameters
View Source
Warn<T0>(Type, String, T0)
Declaration
public void Warn<T0>(Type reporting, string message, T0 propertyValue0)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.String |
message |
|
T0 |
propertyValue0 |
|
Type Parameters
View Source
Warn<T0, T1>(Type, Exception, String, T0, T1)
Declaration
public void Warn<T0, T1>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.Exception |
exception |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
T1 |
propertyValue1 |
|
Type Parameters
View Source
Warn<T0, T1, T2>(Type, Exception, String, T0, T1, T2)
Declaration
public void Warn<T0, T1, T2>(Type reporting, Exception exception, string messageTemplate, T0 propertyValue0, T1 propertyValue1, T2 propertyValue2)
Parameters
Type |
Name |
Description |
System.Type |
reporting |
|
System.Exception |
exception |
|
System.String |
messageTemplate |
|
T0 |
propertyValue0 |
|
T1 |
propertyValue1 |
|
T2 |
propertyValue2 |
|
Type Parameters
Name |
Description |
T0 |
|
T1 |
|
T2 |
|