VR/Assets/MarcsWebLogger.cs

15 lines
402 B
C#

using UnityEngine.Networking;
public static class MarcsWebLogger
{
// Log method
public static void Log(string message)
{
string url = $"https://log.m-g.tech/?message={message}";
UnityWebRequest webRequest = UnityWebRequest.Get(url);
webRequest.SendWebRequest();
}
// check logs at https://log.m-g.tech/logs"
// clear with https://log.m-g.tech/clear"
}