Interface ILogEventStore
Represents a store for logging events.
Namespace: DataWeb.Logging
Assembly: DataWeb.Core.dll
Syntax
public interface ILogEventStore
Properties
Name
Gets the name of the log event store.
Declaration
string Name { get; }
Property Value
Type |
---|
string |
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. |
SetAsync(LogEvent)
Asynchronously adds a log event to the store.
Declaration
Task SetAsync(LogEvent log)
Parameters
Type | Name | Description |
---|---|---|
LogEvent | log | The LogEvent to add to the store. |
Returns
Type | Description |
---|---|
Task | A task that represents the asynchronous operation. |