LogEntity.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System;
  2. namespace Flyinsono.Client.Test
  3. {
  4. public class LogEntity
  5. {
  6. /// <summary>
  7. /// Gets or sets the default Id for the log.
  8. /// </summary>
  9. public string Id { get; set; }
  10. /// <summary>
  11. /// Gets or sets the time of this log.
  12. /// </summary>
  13. public DateTime Time { get; set; }
  14. /// <summary>
  15. /// Who is log
  16. /// </summary>
  17. public string Owner { get; set; }
  18. /// <summary>
  19. /// Gets or sets the <see cref="LogLevel"/> of this log.
  20. /// </summary>
  21. public LogLevel Level { get; set; }
  22. /// <summary>
  23. /// Gets or sets the content of this log.
  24. /// </summary>
  25. public string Message { get; set; }
  26. public LogEntity()
  27. {
  28. }
  29. public LogEntity(DateTime time, LogLevel level, string message)
  30. {
  31. Id = Guid.NewGuid().ToString();
  32. Time = time;
  33. Level = level;
  34. Message = message;
  35. }
  36. }
  37. }