/// <summary> /// 记录框架的异常信息 /// </summary> /// <param name="ex">异常对象</param> public void Log(string name, Exception ex) { log.Log(name, ex); }
//public void PublicInfo(IntegrationEvent evt) //{ // Publish(evt); //} //Task IIntegrationEventHandler<EventModel>.Handle(EventModel @event) //{ // throw new NotImplementedException(); //} // log demo /// <summary> /// 日志使用 demo /// </summary> private void LogTest() { // 异常日志 log.Log("调试信息"); log.Log("标签", new Exception("错误")); }