LogItem.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // -----------------------------------------------------------------------
  2. // <copyright file="SimpleLogItem.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;
  10. /// <summary>
  11. /// Represents an item stored in the log.
  12. /// </summary>
  13. internal class LogItem : ILogItem
  14. {
  15. DateTime time;
  16. LogLevel level;
  17. string message;
  18. string info;
  19. public DateTime Time
  20. {
  21. get { return time; }
  22. }
  23. public LogLevel Level
  24. {
  25. get { return level; }
  26. }
  27. public string Message
  28. {
  29. get { return message; }
  30. }
  31. public string Info
  32. {
  33. get { return info; }
  34. }
  35. public LogItem(LogLevel level, string message)
  36. : this(level, message, "")
  37. {}
  38. public LogItem(LogLevel level, string message, string info)
  39. {
  40. this.time = DateTime.Now;
  41. this.level = level;
  42. this.message = message;
  43. this.info = info;
  44. }
  45. }
  46. }