public static void SceneChangeEvent(string category, string before, string after) { if (!FlowNode_SendLogMessage.IsSetup()) { return; } FlowNode_SendLogMessage.SendLogGenerator sendLogGenerator = new FlowNode_SendLogMessage.SendLogGenerator(); sendLogGenerator.AddCommon(true, false, false, true); sendLogGenerator.Add(nameof(before), before); sendLogGenerator.Add(nameof(after), after); LogKit.Logger.CreateLogger("application").Post(category, LogLevel.Info, sendLogGenerator.GetSendMessage()); }
public static void TrackEvent(string category, string name) { if (!FlowNode_SendLogMessage.IsSetup()) { return; } FlowNode_SendLogMessage.SendLogGenerator sendLogGenerator = new FlowNode_SendLogMessage.SendLogGenerator(); sendLogGenerator.Add(nameof(category), category); sendLogGenerator.Add(nameof(name), name); sendLogGenerator.AddCommon(true, false, false, true); LogKit.Logger.CreateLogger("application").Post(category, LogLevel.Info, sendLogGenerator.GetSendMessage()); }
public static void TrackPurchase(string productId, string currency, double price = 0) { if (!FlowNode_SendLogMessage.IsSetup()) { return; } FlowNode_SendLogMessage.SendLogGenerator sendLogGenerator = new FlowNode_SendLogMessage.SendLogGenerator(); sendLogGenerator.Add(nameof(productId), productId); sendLogGenerator.Add(nameof(currency), currency); sendLogGenerator.Add(nameof(price), price.ToString()); sendLogGenerator.AddCommon(true, false, false, true); LogKit.Logger.CreateLogger("application").Post("purchase", LogLevel.Info, sendLogGenerator.GetSendMessage()); }
private void SceneChangeSendLog(string before, string after) { if (before == null) { before = "Start"; } if (after == "EventQuestList") { string name = Enum.GetName(typeof(GlobalVars.EventQuestListType), (object)GlobalVars.ReqEventPageListType); after = after + "-" + name; } FlowNode_SendLogMessage.SceneChangeEvent("scene", before, after); }