123456789101112131415161718192021222324 |
- using ProjectBase.Data.Logs;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace SIMDP.Device
- {
- public class AlarmHelper
- {
- public static void LogAndNotice(string title, int type, string content)
- {
- if (type == 3)
- LogHelper.log.Error($"{title}:{content}");
- else if (type == 2)
- LogHelper.log.Warn($"{title}:{content}");
- else if (type == 1)
- LogHelper.log.Info($"{title}:{content}");
- ProjectBase.Data.BaseDAL.BLLFactory<BLL.BlSystemNotice>.Instance.PublishSysMessage(title, type, content);
- }
- }
- }
|