using System;
using Siger.Middlelayer.Common.Helpers;

namespace Siger.Middlelayer.Common
{
    public class LogMessage
    {
        public string Id { get; set; }

        public LogLevel Level { get; set; }

        public string Message { get; set; }

        public DateTime Time { get; set; }

        public Module Module { get; set; }

        public LogMessage(LogLevel level, Module module, string message)
        {
            Id = IdHelper.Generate<string>();
            Time = DateTime.Now;
            Level = level;
            Module = module;
            Message = message;
        }

        public LogMessage()
        {

        }
    }
}
