VR/Assets/MarcsWebLogger.cs
2023-12-15 11:11:32 +01:00

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"
}