using System.Diagnostics.CodeAnalysis;
namespace Wayne.Lib.Log
{
    /// <summary>
    /// A Debug LogEntry.
    /// </summary>
    public class DebugLogEntry : LogEntry
    {
        #region Constructors

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

        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="entity">The entity that performed the logging.</param>
        /// <param name="logObject">The object to log.</param>
        /// <param name="logLevel">The log level.</param>
        [SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "object")]
        public DebugLogEntry(IIdentifiableEntity entity, object logObject, DebugLogLevel logLevel)
            : base(entity, logObject, string.Empty)
        {
            LogLevel = logLevel;
        }

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

        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="entity">The entity that performed the logging.</param>
        /// <param name="logObject">The object to log.</param>
        /// <param name="category">The category of the log object.</param>
        /// <param name="logLevel">The log level.</param>
        [SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "object")]
        public DebugLogEntry(IIdentifiableEntity entity, object logObject, object category, DebugLogLevel logLevel)
            : base(entity, logObject, category)
        {
            LogLevel = logLevel;
        }

        #endregion

        #region Properties

        /// <summary>
        /// The log level.
        /// </summary>
        public DebugLogLevel LogLevel { get; private set; }

        #endregion
    }
}