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, int line)
        {
            Message = message;
            Time = DateTime.Now;
            StackFrame = stackFrame;
            Level = level;
            Exception = exception;
            SourceFile = sourceFile;
            Line = line;
        }

        #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; }

        public int Line { get; }

        public override string ToString()
        {
            return Message;
        }

        #endregion

    }
}
