ILog.cs 863 B

1234567891011121314151617181920212223242526272829303132333435
  1. // -----------------------------------------------------------------------
  2. // <copyright file="ILog.cs" company="">
  3. // Triangle.NET code by Christian Woltering, http://triangle.codeplex.com/
  4. // </copyright>
  5. // -----------------------------------------------------------------------
  6. namespace UnityEngine.U2D.Animation.TriangleNet
  7. .Logging
  8. {
  9. using System.Collections.Generic;
  10. internal enum LogLevel
  11. {
  12. Info = 0,
  13. Warning = 1,
  14. Error = 2
  15. }
  16. /// <summary>
  17. /// A basic log interface.
  18. /// </summary>
  19. internal interface ILog<T> where T : ILogItem
  20. {
  21. void Add(T item);
  22. void Clear();
  23. void Info(string message);
  24. void Error(string message, string info);
  25. void Warning(string message, string info);
  26. IList<T> Data { get; }
  27. LogLevel Level { get; }
  28. }
  29. }