View Source
Interface IProfilingLogger
Defines the profiling logging service.
Assembly: Umbraco.Core.dll
Syntax
public interface IProfilingLogger
Methods
View Source
DebugDuration(Type, String, String, String, Int32, 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 |
|
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[])
Profiles an action and log as debug messages.
Declaration
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[])
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 |
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
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 |
|
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[])
Profiles an action and log as information messages.
Declaration
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[])
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 |
System.String |
startMessage |
|
System.String |
completeMessage |
|
System.String |
failMessage |
|
System.Object[] |
startMessageArgs |
|
System.Object[] |
endMessageArgs |
|
System.Object[] |
failMessageArgs |
|
Returns
Type Parameters