51 lines
1.2 KiB
C#
51 lines
1.2 KiB
C#
|
|
using Prism.Mvvm;
|
|||
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace Cowain.Bake.Main.Models
|
|||
|
|
{
|
|||
|
|
public class LogModel : BindableBase
|
|||
|
|
{
|
|||
|
|
private DateTime logTime;
|
|||
|
|
/// <summary>
|
|||
|
|
/// 日志时间
|
|||
|
|
/// </summary>
|
|||
|
|
public DateTime LogTime
|
|||
|
|
{
|
|||
|
|
get => logTime;
|
|||
|
|
set => SetProperty(ref logTime, value);
|
|||
|
|
}
|
|||
|
|
private string logText;
|
|||
|
|
/// <summary>
|
|||
|
|
/// 日志内容
|
|||
|
|
/// </summary>
|
|||
|
|
public string LogText
|
|||
|
|
{
|
|||
|
|
get => logText;
|
|||
|
|
set => SetProperty(ref logText, value);
|
|||
|
|
}
|
|||
|
|
private string logLevel;
|
|||
|
|
/// <summary>
|
|||
|
|
/// 日志等级
|
|||
|
|
/// </summary>
|
|||
|
|
public string LogLevel
|
|||
|
|
{
|
|||
|
|
get => logLevel;
|
|||
|
|
set => SetProperty(ref logLevel, value);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private string fontColor;
|
|||
|
|
/// <summary>
|
|||
|
|
/// 日志等级字体颜色
|
|||
|
|
/// </summary>
|
|||
|
|
public string FontColor
|
|||
|
|
{
|
|||
|
|
get => fontColor;
|
|||
|
|
set => SetProperty(ref fontColor, value);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|