Logable.cs 424 B

123456789101112131415161718192021
  1. using System.Collections.Generic;
  2. namespace Logging
  3. {
  4. public interface ILogable
  5. {
  6. string Key { get; }
  7. IEnumerable<string> HeaderNames { get; }
  8. IEnumerable<IEnumerable<string>> BufferLines { get; }
  9. void ClearBuffer();
  10. }
  11. public interface ISerializableLog<T>
  12. {
  13. void Log(T value);
  14. IEnumerable<T> ReadLog(IEnumerable<IEnumerable<string>> lines);
  15. }
  16. }