ILogable.cs 504 B

1234567891011121314151617181920
  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. }