EasySave v3.0
Loading...
Searching...
No Matches
EasyLog.ILogWriter Interface Reference

Public contract for a log writer. Implementations write a log entry asynchronously. More...

Inheritance diagram for EasyLog.ILogWriter:
EasyLog.DailyLogWriter EasyLog.XmlDailyLogWriter EasySave.Infrastructure.Persistence.ConfigurableLogWriter EasySave.Infrastructure.Persistence.DestinationLogWriter

Public Member Functions

Task WriteAllTextAsync< T > (T logEntry, CancellationToken cancellationToken)
 Writes a log entry asynchronously.

Detailed Description

Public contract for a log writer. Implementations write a log entry asynchronously.

Member Function Documentation

◆ WriteAllTextAsync< T >()

Task EasyLog.ILogWriter.WriteAllTextAsync< T > ( T logEntry,
CancellationToken cancellationToken )

Writes a log entry asynchronously.

Template Parameters
TType of the log entry payload.
Parameters
logEntryThe log entry to write.
cancellationTokenCancellation token to cancel the operation if required.
Returns
A Task representing the asynchronous operation.

Implemented in EasyLog.DailyLogWriter, EasyLog.XmlDailyLogWriter, EasySave.Infrastructure.Persistence.ConfigurableLogWriter, and EasySave.Infrastructure.Persistence.DestinationLogWriter.


The documentation for this interface was generated from the following file:
  • EasyLog/ILogWriter.cs