OvrAvatarLogger.cs
1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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);
}
};
}