using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GummingCommon { public class LogService { public static void WriteExceptionLog(Exception content) { AppEventAggregator.GetEventAggregator().GetEvent().Publish(new NotifyEventParameter() { NotifyType = CallbackType.PushAppErrorLog, NotifyContent = content }); } public static void WriteWarnLog(string content) { AppEventAggregator.GetEventAggregator().GetEvent().Publish(new NotifyEventParameter() { NotifyType = CallbackType.PushAppWarnLog, NotifyContent = content }); } public static void WriteErrorLog(Exception content) { AppEventAggregator.GetEventAggregator().GetEvent().Publish(new NotifyEventParameter() { NotifyType = CallbackType.PushAppErrorLog, NotifyContent = content }); } public static void WriteErrorLog(string content) { AppEventAggregator.GetEventAggregator().GetEvent().Publish(new NotifyEventParameter() { NotifyType = CallbackType.PushAppErrorLog, NotifyContent = content }); } } }