/********************************
*
* 作者:吴隆健
* 创建时间: 2019-06-09 10:33:10
*
********************************/
using System;
using MrWu.Time;
using Newtonsoft.Json;
namespace MrWu.Debug {
///
/// 日志消息
///
public struct LogMessage {
///
/// 消息id
///
[JsonIgnore]
public ulong logid;
///
/// 日志等级
///
public DebugLevel logLevel;
///
/// log字符串
///
[JsonIgnore]
public string logstr;
/////
/////
/////
//public string rawContent;
///
///
///
public DateTime DateTime;
/////
///// 创建一个日志消息
/////
//public LogMessage() {
//}
///
/// 创建一个日志消息
///
/// 日志id
/// 日志等级
/// 消息内容
public LogMessage(ulong logid, DebugLevel logLevel, string logstr) {
this.logid = logid;
this.logLevel = logLevel;
this.logstr = logstr;
this.DateTime = DateTime.Now;
//this.rawContent = logstr;
}
}
}