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 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 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()); }