#region  --------------- Copyright Dresser Wayne Pignone -------------
/*
 * $Log: /Wrk/WayneLibraries/Wrk/Log/EventLogEntry.cs $
 * 
 * 2     08-02-13 9:26 Mattias.larsson
 * FxCop fixes.
 */
#endregion

using System.Xml;
using System.Diagnostics.CodeAnalysis;
namespace Wayne.Lib.Log
{
    /// <summary>
    /// LogEntry for Events.
    /// </summary>
    public class EventLogEntry : LogEntry
    {
        #region Construction

        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="logObject">The object to log.</param>
        [SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "object")]
        public EventLogEntry(IIdentifiableEntity entity, object logObject)
            : base(entity, logObject)
        {
            LogLevel = DebugLogLevel.Normal;
        }

        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="logObject">The object to log.</param>
        /// <param name="category"></param>
        [SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "object")]
        public EventLogEntry(IIdentifiableEntity entity, object logObject, object category)
            : base(entity, logObject, category)
        {
            LogLevel = DebugLogLevel.Normal;
        }

        /// <summary>
        /// Log level of this log entry.
        /// </summary>
        public DebugLogLevel LogLevel { get; set; }

        #endregion
    }
}