EventLogEntry.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #region --------------- Copyright Dresser Wayne Pignone -------------
  2. /*
  3. * $Log: /Wrk/WayneLibraries/Wrk/Log/EventLogEntry.cs $
  4. *
  5. * 2 08-02-13 9:26 Mattias.larsson
  6. * FxCop fixes.
  7. */
  8. #endregion
  9. using System.Xml;
  10. using System.Diagnostics.CodeAnalysis;
  11. namespace Wayne.Lib.Log
  12. {
  13. /// <summary>
  14. /// LogEntry for Events.
  15. /// </summary>
  16. public class EventLogEntry : LogEntry
  17. {
  18. #region Construction
  19. /// <summary>
  20. /// Constructor.
  21. /// </summary>
  22. /// <param name="entity"></param>
  23. /// <param name="logObject">The object to log.</param>
  24. [SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "object")]
  25. public EventLogEntry(IIdentifiableEntity entity, object logObject)
  26. : base(entity, logObject)
  27. {
  28. LogLevel = DebugLogLevel.Normal;
  29. }
  30. /// <summary>
  31. /// Constructor.
  32. /// </summary>
  33. /// <param name="entity"></param>
  34. /// <param name="logObject">The object to log.</param>
  35. /// <param name="category"></param>
  36. [SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "object")]
  37. public EventLogEntry(IIdentifiableEntity entity, object logObject, object category)
  38. : base(entity, logObject, category)
  39. {
  40. LogLevel = DebugLogLevel.Normal;
  41. }
  42. /// <summary>
  43. /// Log level of this log entry.
  44. /// </summary>
  45. public DebugLogLevel LogLevel { get; set; }
  46. #endregion
  47. }
  48. }