Skip to main content
Glama
LogLevel.cs1.62 kB
/* ┌──────────────────────────────────────────────────────────────────┐ │ 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. │ └──────────────────────────────────────────────────────────────────┘ */ #nullable enable namespace com.IvanMurzak.Unity.MCP.Runtime.Utils { public enum LogLevel { Trace = 0, // show all messages Debug = 1, // show only Debug, Info, Warning, Error, Exception messages Info = 2, // show only Info, Warning, Error, Exception messages Warning = 3, // show only Warning, Error, Exception messages Error = 4, // show only Error, Exception messages Exception = 5, // show only Exception messages None = 6 // show no messages } public static class LogLevelEx { /// <summary> /// Check if the LogLevel is enabled /// If it is enabled the related message will be shown in the console /// </summary> public static bool IsEnabled(this LogLevel logLevel, LogLevel level) => logLevel <= level; } }

Latest Blog Posts

MCP directory API

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