Rasagar/Library/PackageCache/com.unity.package-validation-suite/Editor/ValidationSuite/Utilities/ActivityLogger.cs
2024-08-26 23:07:20 +03:00

22 lines
629 B
C#

using UnityEngine;
namespace UnityEditor.PackageManager.ValidationSuite
{
/// <summary>
/// Logger used to keep track of Validation Suite activity, for debugging
/// </summary>
static class ActivityLogger
{
public static void Log(string message, params object[] args)
{
#if UNITY_2019_1_OR_NEWER
Debug.LogFormat(LogType.Log, LogOption.NoStacktrace, null,
"[Package Validation Suite] " + message, args);
#else
var finalMessage = "[Package Validation Suite] " + string.Format(message, args);
Debug.Log(finalMessage);
#endif
}
}
}