Files
velopack/test/Divergic.Logging.Xunit/ICacheLogger.cs

28 lines
773 B
C#

namespace Divergic.Logging.Xunit
{
using System;
using System.Collections.Generic;
using Microsoft.Extensions.Logging;
/// <summary>
/// The <see cref="ICacheLogger" />
/// interface defines the members for recording and accessing log entries.
/// </summary>
public interface ICacheLogger : ILogger, IDisposable
{
/// <summary>
/// Gets the number of cache entries recorded.
/// </summary>
int Count { get; }
/// <summary>
/// Gets the recorded cache entries.
/// </summary>
IReadOnlyCollection<LogEntry> Entries { get; }
/// <summary>
/// Gets the latest cache entry.
/// </summary>
LogEntry? Last { get; }
}
}