Interface ILogService
Provides logging services.
Namespace: DataWeb.Logging
Assembly: DataWeb.Core.dll
Syntax
public interface ILogService
Methods
GetLogEventsAsync(LogEventFilter)
Asynchronously retrieves log events that match the specified filter.
Declaration
Task<IEnumerable<LogEvent>> GetLogEventsAsync(LogEventFilter filter)
Parameters
Type | Name | Description |
---|---|---|
LogEventFilter | filter | The LogEventFilter used to retrieve the log events. |
Returns
Type | Description |
---|---|
Task<IEnumerable<LogEvent>> | A task that represents the asynchronous operation. The task result contains the log events. |
SetLogEventAsync(LogEvent)
Asynchronously adds a log event to the store.
Declaration
Task SetLogEventAsync(LogEvent log)
Parameters
Type | Name | Description |
---|---|---|
LogEvent | log |
Returns
Type | Description |
---|---|
Task | A task that represents the asynchronous operation. |