Assignment for RMIT Mixed Reality in 2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

45 lines
1.5 KiB

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);
}
[System.Diagnostics.Conditional("ENABLE_AVATAR_LOGS"),
System.Diagnostics.Conditional("ENABLE_AVATAR_LOG_ERROR")]
public static void LogError(string logMsg, Object context)
{
Debug.LogError(LogAvatar + logMsg, context);
}
};
}