Class SoTimeLoggerPlugin
Plugin responsible for logging times to file.
Implements
Inherited Members
Namespace: SuperOffice.Diagnostics
Assembly: SoCore.dll
Syntax
[SoTimeRecorderPlugin("LogTimes")]
public sealed class SoTimeLoggerPlugin : ISoTimeRecorderPlugin
Constructors
SoTimeLoggerPlugin()
Plugin responsible for logging times to file.
Declaration
public SoTimeLoggerPlugin()
Properties
Enabled
Is the time recorder currently enabled - like SoLogger and LogTimes in the diagnostics configuration section.
Declaration
public bool Enabled { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
Start(SoTimerType, string, Func<string>)
Start a timing operation.
Declaration
public ISoTimeRecorderContext Start(SoTimerType type, string category, Func<string> description)
Parameters
| Type | Name | Description |
|---|---|---|
| SoTimerType | type | |
| string | category | Category like: Database, Services, WebRequest, etc. |
| Func<string> | description | Brief information about what is being timed. |
Returns
| Type | Description |
|---|---|
| ISoTimeRecorderContext | Timer object |