EventLogWriter.cs 671 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using Aitex.Core.RT.Log;
  6. namespace Aitex.Core.RT.Event
  7. {
  8. class EventLogWriter
  9. {
  10. public void WriteEvent(EventItem ev)
  11. {
  12. if (ev.Level == EventLevel.Alarm)
  13. {
  14. //LOG.Error(ev.Description.Replace("'", "''"));
  15. }
  16. else if (ev.Level == EventLevel.Warning)
  17. {
  18. //LOG.Warning(ev.Description.Replace("'", "''"));
  19. }
  20. else
  21. {
  22. //LOG.Info(ev.Description.Replace("'", "''"));
  23. }
  24. }
  25. }
  26. }