向redis发布消息
UserLogProvider
string dataBaseType = _configDev.GetValue<string>("operation:systemLogDbType");
_subscribePublish.PushBiz(pf, _configDev, $"user-log-{pf.OwnerId}-mkey-{pf.ModuleKey}", $"user-log-{pf.OwnerId}-mkey");
FileUtil.CreateFileAndContentAsync($"~/App_Logs/Task/logincontroller/{DateTime.Now.ToFileTime()}.json", JsonUtil.Serialize(r.Exception));
UserBehaviorProvider
string dataBaseType = _configDev.GetValue<string>("operation:userBehaviorDbType");
_subscribePublish.PushBiz(pf, _configDev, $"user-behavior-{pf.OwnerId}-mkey-{pf.ModuleKey}", $"user-behavior-{pf.OwnerId}-mkey");
FileUtil.CreateFileAndContentAsync($"~/App_Logs/Task/UserBehaviorProvider/{DateTime.Now.ToFileTime()}.json", JsonUtil.Serialize(r.Exception));
OperateLogTrackProvider
string dataBaseType = _configDev.GetValue<string>("operation:trackLogDbType");
_subscribePublish.PushBiz(pf, _configDev, $"operate-track-{pf.OwnerId}-mkey-{pf.ModuleKey}", $"operate-track-{pf.OwnerId}-mkey");
FileUtil.CreateFileAndContentAsync($"~/App_Logs/Task/OperateLogTrackProvider/{DateTime.Now.ToFileTime()}.json", JsonUtil.Serialize(r.Exception));
OperateLogProvider
string dataBaseType = _configDev.GetValue<string>("operation:opLogDbType");
_subscribePublish.PushBiz(pf, _configDev, $"operate-log-{pf.OwnerId}-mkey-{pf.ModuleKey}", $"operate-log-{pf.OwnerId}-mkey");
FileUtil.CreateFileAndContentAsync($"~/App_Logs/Task/OperateLogProvider/{DateTime.Now.ToFileTime()}.json", JsonUtil.Serialize(r.Exception));
文档更新时间: 2021-08-25 08:00 作者:admin