Logger.cs 520 Bytes
using HHECS.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HHECS.Bll
{
    public class Logger
    {
        #region 事件

        public static event Delegates.LogWriteEventHandle LogWrite;

        public static void Log(string content, LogLevel logLevel,Exception exception = null)
        {
            LogWrite?.Invoke(null, LogEventArgs.GetLogEventArgs(content, logLevel,exception));
        }

        #endregion
    }
}