Description:
Add helper methods.
(grafted from fd7b8d43e7da379d9b2aa0379803a5759b7e2ad5)
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -65,10 +65,70 | |||||
|
65 | { |
|
65 | { |
|
66 |
|
66 | ||
|
67 | Logging.Log_(level, message, lineNumber, caller, path); |
|
67 | Logging.Log_(level, message, lineNumber, caller, path); |
|
|
68 | } | ||
|
68 |
|
69 | ||
|
|
70 | public static void Critical(string message, | ||
|
|
71 | [CallerLineNumber] int lineNumber = 0, | ||
|
|
72 | [CallerMemberName] string caller = null, | ||
|
|
73 | [CallerFilePath] string path = "") | ||
|
|
74 | { | ||
|
|
75 | |||
|
|
76 | Logging.Log_(LogLevel.Critical, message, lineNumber, caller, path); | ||
|
|
77 | } | ||
|
|
78 | |||
|
|
79 | public static void Error(string message, | ||
|
|
80 | [CallerLineNumber] int lineNumber = 0, | ||
|
|
81 | [CallerMemberName] string caller = null, | ||
|
|
82 | [CallerFilePath] string path = "") | ||
|
|
83 | { | ||
|
|
84 | |||
|
|
85 | Logging.Log_(LogLevel.Error, message, lineNumber, caller, path); | ||
|
69 | } |
|
86 | } |
|
70 |
|
87 | ||
|
|
88 | public static void Warning(string message, | ||
|
|
89 | [CallerLineNumber] int lineNumber = 0, | ||
|
|
90 | [CallerMemberName] string caller = null, | ||
|
|
91 | [CallerFilePath] string path = "") | ||
|
|
92 | { | ||
|
71 |
|
93 | ||
|
|
94 | Logging.Log_(LogLevel.Warning, message, lineNumber, caller, path); | ||
|
|
95 | } | ||
|
72 |
|
96 | ||
|
|
97 | |||
|
|
98 | public static void Success(string message, | ||
|
|
99 | [CallerLineNumber] int lineNumber = 0, | ||
|
|
100 | [CallerMemberName] string caller = null, | ||
|
|
101 | [CallerFilePath] string path = "") | ||
|
|
102 | { | ||
|
|
103 | |||
|
|
104 | Logging.Log_(LogLevel.Success, message, lineNumber, caller, path); | ||
|
|
105 | } | ||
|
|
106 | |||
|
|
107 | public static void Info(string message, | ||
|
|
108 | [CallerLineNumber] int lineNumber = 0, | ||
|
|
109 | [CallerMemberName] string caller = null, | ||
|
|
110 | [CallerFilePath] string path = "") | ||
|
|
111 | { | ||
|
|
112 | |||
|
|
113 | Logging.Log_(LogLevel.Info, message, lineNumber, caller, path); | ||
|
|
114 | } | ||
|
|
115 | |||
|
|
116 | public static void Debug(string message, | ||
|
|
117 | [CallerLineNumber] int lineNumber = 0, | ||
|
|
118 | [CallerMemberName] string caller = null, | ||
|
|
119 | [CallerFilePath] string path = "") | ||
|
|
120 | { | ||
|
|
121 | |||
|
|
122 | Logging.Log_(LogLevel.Debug, message, lineNumber, caller, path); | ||
|
|
123 | } | ||
|
|
124 | |||
|
|
125 | public static void Trace(string message, | ||
|
|
126 | [CallerLineNumber] int lineNumber = 0, | ||
|
|
127 | [CallerMemberName] string caller = null, | ||
|
|
128 | [CallerFilePath] string path = "") | ||
|
|
129 | { | ||
|
|
130 | |||
|
|
131 | Logging.Log_(LogLevel.Trace, message, lineNumber, caller, path); | ||
|
|
132 | } | ||
|
73 | } |
|
133 | } |
|
74 | } |
|
134 | } |
@@ -157,6 +157,14 | |||||
|
157 | Logging.Log(LogLevel.Debug, "Test"); |
|
157 | Logging.Log(LogLevel.Debug, "Test"); |
|
158 | Logging.Log(LogLevel.Trace, "Test"); |
|
158 | Logging.Log(LogLevel.Trace, "Test"); |
|
159 |
|
159 | ||
|
|
160 | Logging.Critical("Test"); | ||
|
|
161 | Logging.Error("Test"); | ||
|
|
162 | Logging.Warning("Test"); | ||
|
|
163 | Logging.Success("Test"); | ||
|
|
164 | Logging.Info("Test"); | ||
|
|
165 | Logging.Debug("Test"); | ||
|
|
166 | Logging.Trace("Test"); | ||
|
|
167 | |||
|
160 | } |
|
168 | } |
|
161 | if (debugInfo.pastFps.Length >= 1) |
|
169 | if (debugInfo.pastFps.Length >= 1) |
|
162 | { |
|
170 | { |
You need to be logged in to leave comments.
Login now