1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- 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
- }
- }
|