You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PlumberUltimateAds/Assets/PlayFabSDK/Shared/Internal/Log.cs

45 lines
1.5 KiB
C#

1 month ago
using System;
namespace PlayFab.Internal
{
[Obsolete("This logging utility has been deprecated. Use UnityEngine.Debug.Log")]
public static class Log
{
[Obsolete("Debug is deprecated.")]
public static void Debug(string text, params object[] args)
{
if ((PlayFabSettings.LogLevel & PlayFabLogLevel.Debug) != 0)
{
UnityEngine.Debug.Log(PlayFabUtil.timeStamp + " DEBUG: " + PlayFabUtil.Format(text, args));
}
}
[Obsolete("Info is deprecated.")]
public static void Info(string text, params object[] args)
{
if ((PlayFabSettings.LogLevel & PlayFabLogLevel.Info) != 0)
{
UnityEngine.Debug.Log(PlayFabUtil.timeStamp + " INFO: " + PlayFabUtil.Format(text, args));
}
}
[Obsolete("Warning is deprecated.")]
public static void Warning(string text, params object[] args)
{
if ((PlayFabSettings.LogLevel & PlayFabLogLevel.Warning) != 0)
{
UnityEngine.Debug.LogWarning(PlayFabUtil.timeStamp + " WARNING: " + PlayFabUtil.Format(text, args));
}
}
[Obsolete("Error is deprecated.")]
public static void Error(string text, params object[] args)
{
if ((PlayFabSettings.LogLevel & PlayFabLogLevel.Error) != 0)
{
UnityEngine.Debug.LogError(PlayFabUtil.timeStamp + " ERROR: " + PlayFabUtil.Format(text, args));
}
}
}
}