FittsLaw/Assets/Oculus/Avatar/Scripts/OvrAvatarLogger.cs
2018-10-09 20:59:57 -04:00

39 lines
1.2 KiB
C#

using UnityEngine;
namespace Oculus.Avatar
{
public static class AvatarLogger
{
public const string LogAvatar = "[Avatars] - ";
public const string Tab = " ";
[System.Diagnostics.Conditional("ENABLE_AVATAR_LOGS"),
System.Diagnostics.Conditional("ENABLE_AVATAR_LOG_BASIC")]
public static void Log(string logMsg)
{
Debug.Log(LogAvatar + logMsg);
}
[System.Diagnostics.Conditional("ENABLE_AVATAR_LOGS"),
System.Diagnostics.Conditional("ENABLE_AVATAR_LOG_BASIC")]
public static void Log(string logMsg, Object context)
{
Debug.Log(LogAvatar + logMsg , context);
}
[System.Diagnostics.Conditional("ENABLE_AVATAR_LOGS"),
System.Diagnostics.Conditional("ENABLE_AVATAR_LOG_WARNING")]
public static void LogWarning(string logMsg)
{
Debug.LogWarning(LogAvatar + logMsg);
}
[System.Diagnostics.Conditional("ENABLE_AVATAR_LOGS"),
System.Diagnostics.Conditional("ENABLE_AVATAR_LOG_ERROR")]
public static void LogError(string logMsg)
{
Debug.LogError(LogAvatar + logMsg);
}
};
}