using System;
using EonaCat.Logger.Helpers;

namespace EonaCat.Logger.EonaCatCoreLogger.Models
{
    // This file is part of the EonaCat project(s) which is released under the Apache License.
    // See the LICENSE file or go to https://EonaCat.com/License for full license details.

    public class EonaCatLogMessage
    {
        public DateTime DateTime { get; set; }
        public string Message { get; set; }
        public ELogType LogType { get; set; }
        public string Origin { get; set; }

        public override string ToString()
        {
            return $"[{DateTime.ToString(Constants.DateTimeFormats.LOGGING)}] [{EnumHelper<ELogType>.ToString(LogType)}] {Message}";
        }
    }
}