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?, 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
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 Parameters
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 Parameters
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
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 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 |
| string |
startMessage |
|
| string |
completeMessage |
|
| string |
failMessage |
|
| object[] |
startMessageArgs |
|
| object[] |
endMessageArgs |
|
| object[] |
failMessageArgs |
|
Returns
Type Parameters