We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/IvanMurzak/Unity-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
LogEntry.cs•1.61 KiB
/*
┌──────────────────────────────────────────────────────────────────┐
│ Author: Ivan Murzak (https://github.com/IvanMurzak) │
│ Repository: GitHub (https://github.com/IvanMurzak/Unity-MCP) │
│ Copyright (c) 2025 Ivan Murzak │
│ Licensed under the Apache License, Version 2.0. │
│ See the LICENSE file in the project root for more information. │
└──────────────────────────────────────────────────────────────────┘
*/
#pragma warning disable CS8632 // The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
using System;
using UnityEngine;
namespace com.IvanMurzak.Unity.MCP
{
[Serializable]
public class LogEntry
{
public string message;
public string stackTrace;
public LogType logType;
public DateTime timestamp;
public string logTypeString;
public LogEntry(string message, string stackTrace, LogType logType)
{
this.message = message;
this.stackTrace = stackTrace;
this.logType = logType;
this.timestamp = DateTime.Now;
this.logTypeString = logType.ToString();
}
public override string ToString() => $"[{timestamp:yyyy-MM-dd HH:mm:ss.fff}] [{logTypeString}] {message}";
}
}