LogEntry.cs 982 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* Copyright (C) 2012-2016 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
  2. *
  3. * You can redistribute this program and/or modify it under the terms of
  4. * the GNU Lesser Public License as published by the Free Software Foundation,
  5. * either version 3 of the License, or (at your option) any later version.
  6. */
  7. using System;
  8. namespace Utilities
  9. {
  10. public enum Severity
  11. {
  12. Critical = 1,
  13. Error = 2,
  14. Warning = 3,
  15. Information = 4,
  16. Verbose = 5,
  17. Debug = 6,
  18. Trace = 7,
  19. }
  20. public class LogEntry : EventArgs
  21. {
  22. public DateTime Time;
  23. public Severity Severity;
  24. public string Source;
  25. public string Message;
  26. public LogEntry(DateTime time, Severity severity, string source, string message)
  27. {
  28. Time = time;
  29. Severity = severity;
  30. Source = source;
  31. Message = message;
  32. }
  33. }
  34. }