Sic.Framework-Nanjing-Baishi/MECF.Framework.Common/Aitex/Core/RT/Log/LogItem.cs

44 lines
809 B
C#
Raw Normal View History

using System;
using System.Diagnostics;
using log4net.Core;
namespace Aitex.Core.RT.Log
{
internal struct LogItem
{
#region Constructors
public LogItem(string message, StackFrame stackFrame, Level level, Exception exception, string sourceFile)
{
Message = message;
Time = DateTime.Now;
StackFrame = stackFrame;
Level = level;
Exception = exception;
SourceFile = sourceFile;
}
#endregion
#region Properties
public string Message { get; }
public DateTime Time { get; }
public StackFrame StackFrame { get; }
public Level Level { get; }
public Exception Exception { get; }
public string SourceFile { get; }
#endregion
}
}