LogEntry.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. using System.Collections.Generic;
  9. using System.Text;
  10. namespace Utilities
  11. {
  12. public enum Severity
  13. {
  14. Critical = 1,
  15. Error = 2,
  16. Warning = 3,
  17. Information = 4,
  18. Verbose = 5,
  19. Debug = 6,
  20. Trace = 7,
  21. }
  22. public class LogEntry : EventArgs
  23. {
  24. public DateTime Time;
  25. public Severity Severity;
  26. public string Source;
  27. public string Message;
  28. public LogEntry(DateTime time, Severity severity, string source, string message)
  29. {
  30. Time = time;
  31. Severity = severity;
  32. Source = source;
  33. Message = message;
  34. }
  35. }
  36. }