LogEventArgs.cs 623 B

1234567891011121314151617181920212223242526272829303132
  1. namespace Vinno.FIS.TRTCClient.Common.Log
  2. {
  3. /// <summary>
  4. /// Log EventArgs
  5. /// </summary>
  6. public class LogEventArgs
  7. {
  8. /// <summary>
  9. /// Log Type
  10. /// </summary>
  11. public DeviceLogCategory LogType { get; }
  12. /// <summary>
  13. /// Msg
  14. /// </summary>
  15. public string Msg { get; }
  16. public LogEventArgs(DeviceLogCategory logType, string msg)
  17. {
  18. LogType = logType;
  19. Msg = msg;
  20. }
  21. }
  22. public enum DeviceLogCategory
  23. {
  24. Error = 1,
  25. Warn = 2,
  26. Info = 3,
  27. Verb = 4
  28. }
  29. }