LogEventArgs.cs 709 Bytes
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HHECS.Model
{
    public class LogEventArgs : EventArgs
    {
        public string Content { get; set; }
        public LogLevel LogLevel { get; set; }
        public Exception Exception { get; set; }
        public LogEventArgs() : base()
        {

        }
        public static LogEventArgs GetLogEventArgs(string content,LogLevel logLevel,Exception exception = null)
        {
            return new LogEventArgs()
            {
                Content = content,
                LogLevel = logLevel,
                Exception = exception
            };
        }
    }
}