2
0

ILogable.cs 505 B

123456789101112131415161718192021
  1. using System.Collections.Generic;
  2. namespace Logging.Base
  3. {
  4. public interface ILogable
  5. {
  6. string Key { get; }
  7. IEnumerable<string> HeaderNames { get; } // header names apart from timestamp
  8. Dictionary<long, string[]> BufferLines { get; } //key = timestamp, rest is serialized values
  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. }