|
EasySave v3.0
|
Writes log entries to a daily XML file (yyyy-MM-dd.xml). The file contains a logEntries root element with one logEntry element per write.
More...
Public Member Functions | |
| XmlDailyLogWriter (string baseDirectory) | |
| XmlDailyLogWriter (Func< string > getBaseDirectory) | |
| Initializes a new instance with a delegate to resolve the log directory at runtime. | |
| async Task | WriteAllTextAsync< T > (T logEntry, CancellationToken cancellationToken) |
| Writes a log entry asynchronously. | |
| Task | WriteAllTextAsync< T > (T logEntry) |
| Compatibility overload: write without providing a CancellationToken. | |
| void | Dispose () |
Writes log entries to a daily XML file (yyyy-MM-dd.xml). The file contains a logEntries root element with one logEntry element per write.
| async Task EasyLog.XmlDailyLogWriter.WriteAllTextAsync< T > | ( | T | logEntry, |
| CancellationToken | cancellationToken ) |
Writes a log entry asynchronously.
| T | Type of the log entry payload. |
| logEntry | The log entry to write. |
| cancellationToken | Cancellation token to cancel the operation if required. |
Implements EasyLog.ILogWriter.