Interface IPerformanceLogger
A generic interface for performance logging.
Namespace:InfinniPlatform.Logging
Assembly:InfinniPlatform.Core.Abstractions.dll
Syntax
public interface IPerformanceLogger
Methods
| Improve this Doc View SourceLog(String, DateTime, Exception)
Logs the method duration.
Declaration
void Log(string method, DateTime start, Exception exception = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | method | The method name to log. |
DateTime | start | The method start time. |
Exception | exception | The exception to log. |
Log(String, TimeSpan, Exception)
Logs the method duration.
Declaration
void Log(string method, TimeSpan duration, Exception exception = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | method | The method name to log. |
TimeSpan | duration | The method duration to log. |
Exception | exception | The exception to log. |