-
Notifications
You must be signed in to change notification settings - Fork 1
/
Log.cs
83 lines (78 loc) · 2.71 KB
/
Log.cs
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
using System;
using System.Diagnostics;
public class Log {
#region Message
[Conditional("LOGGING_ENABLED")]
public static void Message(object message) {
UnityEngine.Debug.Log(message);
}
[Conditional("LOGGING_ENABLED")]
public static void Message(UnityEngine.Object context, object message) {
UnityEngine.Debug.Log(message, context);
}
[Conditional("LOGGING_ENABLED")]
public static void MessageFormat(string format, params object[] args) {
UnityEngine.Debug.LogFormat(format, args);
}
[Conditional("LOGGING_ENABLED")]
public static void MessageFormat(UnityEngine.Object context, string format, params object[] args) {
UnityEngine.Debug.LogFormat(context, format, args);
}
#endregion
#region Warning
[Conditional("LOGGING_ENABLED")]
public static void Warning(object message) {
UnityEngine.Debug.LogWarning(message);
}
[Conditional("LOGGING_ENABLED")]
public static void Warning(UnityEngine.Object context, object message) {
UnityEngine.Debug.LogWarning(message, context);
}
[Conditional("LOGGING_ENABLED")]
public static void WarningFormat(string format, params object[] args) {
UnityEngine.Debug.LogWarningFormat(format, args);
}
[Conditional("LOGGING_ENABLED")]
public static void WarningFormat(UnityEngine.Object context, string format, params object[] args) {
UnityEngine.Debug.LogWarningFormat(context, format, args);
}
#endregion
#region Error
[Conditional("LOGGING_ENABLED")]
public static void Error(object message) {
UnityEngine.Debug.LogError(message);
}
[Conditional("LOGGING_ENABLED")]
public static void Error(UnityEngine.Object context, object message) {
UnityEngine.Debug.LogError(message, context);
}
[Conditional("LOGGING_ENABLED")]
public static void ErrorFormat(string format, params object[] args) {
UnityEngine.Debug.LogErrorFormat(format, args);
}
[Conditional("LOGGING_ENABLED")]
public static void ErrorFormat(UnityEngine.Object context, string format, params object[] args) {
UnityEngine.Debug.LogErrorFormat(context, format, args);
}
#endregion
#region Assertion
[Conditional("LOGGING_ENABLED")]
public static void Assertion(object message) {
UnityEngine.Debug.LogAssertion(message);
}
[Conditional("LOGGING_ENABLED")]
public static void Assertion(UnityEngine.Object context, object message) {
UnityEngine.Debug.LogAssertion(message, context);
}
#endregion
#region Exception
[Conditional("LOGGING_ENABLED")]
public static void Exception(Exception exception) {
UnityEngine.Debug.LogException(exception);
}
[Conditional("LOGGING_ENABLED")]
public static void Exception(UnityEngine.Object context, Exception exception) {
UnityEngine.Debug.LogException(exception, context);
}
#endregion
}