using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VSview
{
    /// <summary>
    /// Model of one line in log 
    /// </summary>
    public class LogLine
    {
        #region Constructors
        public LogLine(string text)
        {
            Date = DateTime.Now.Date.ToString("yyyy/MM/dd");
            Time = DateTime.Now.ToString("HH:mm:ss");
            Text = text;
        }

        #endregion

        #region Public properties
        /// <summary>
        /// Date of log line
        /// </summary>
        public string Date { get; set; }

        /// <summary>
        /// Time of log line
        /// </summary>
        public string Time { get; set; }

        /// <summary>
        /// Text of log line
        /// </summary>
        public string Text { get; set; }
        #endregion
    }
}
