备份CatanBuilding瘦身独立工程
This commit is contained in:
44
LocalPackages/PlayFabSDK/Shared/Internal/Log.cs
Normal file
44
LocalPackages/PlayFabSDK/Shared/Internal/Log.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user