You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
900 B

using System;
namespace Apewer.Models
{
/// <summary>日志条目。</summary>
[Serializable]
public sealed class LogItem
{
/// <summary>记录日志的时间。</summary>
public string Clock { get; private set; }
/// <summary>日志的标签。</summary>
public string Tag { get; internal set; }
internal Nullable<ConsoleColor> Color { get; set; }
/// <summary>日志的文本内容。</summary>
public string Content { get; internal set; }
/// <summary>日志中包含的异常对象。</summary>
public Exception Exception { get; internal set; }
/// <summary>生成日志的对象。</summary>
public object Sender { get; internal set; }
/// <summary></summary>
internal LogItem()
{
Clock = ClockUtility.Lucid(DateTime.Now);
}
}
}