@@ -6,7 +6,7 @@ namespace Zigurous.DebugTools
66 /// Provides more robust console logging functions compared to
77 /// UnityEngine.Debug.
88 /// </summary>
9- public static class Debug
9+ public static class Log
1010 {
1111 /// <summary>
1212 /// A prefix appended to every log message printed to the console.
@@ -35,13 +35,13 @@ public static class Debug
3535 /// <summary>
3636 /// Logs a message to the Unity console.
3737 /// </summary>
38- public static void Log ( object message )
38+ public static void Message ( object message )
3939 {
4040 #if UNITY_EDITOR || DEVELOPMENT_BUILD
4141 if ( message != null ) {
42- UnityEngine . Debug . Log ( stringBuilder . Append ( Debug . prefix ) . Append ( message ) ) ;
42+ UnityEngine . Debug . Log ( stringBuilder . Append ( Log . prefix ) . Append ( message ) ) ;
4343 } else {
44- UnityEngine . Debug . Log ( stringBuilder . Append ( Debug . prefix ) . Append ( Debug . nullReference ) ) ;
44+ UnityEngine . Debug . Log ( stringBuilder . Append ( Log . prefix ) . Append ( Log . nullReference ) ) ;
4545 }
4646 stringBuilder . Clear ( ) ;
4747 #endif
@@ -50,13 +50,13 @@ public static void Log(object message)
5050 /// <summary>
5151 /// Logs a message to the Unity console under a given context.
5252 /// </summary>
53- public static void Log ( object message , UnityEngine . Object context )
53+ public static void Message ( object message , UnityEngine . Object context )
5454 {
5555 #if UNITY_EDITOR || DEVELOPMENT_BUILD
5656 if ( message != null ) {
57- UnityEngine . Debug . Log ( stringBuilder . Append ( Debug . prefix ) . Append ( message ) , context ) ;
57+ UnityEngine . Debug . Log ( stringBuilder . Append ( Log . prefix ) . Append ( message ) , context ) ;
5858 } else {
59- UnityEngine . Debug . Log ( stringBuilder . Append ( Debug . prefix ) . Append ( Debug . nullReference ) , context ) ;
59+ UnityEngine . Debug . Log ( stringBuilder . Append ( Log . prefix ) . Append ( Log . nullReference ) , context ) ;
6060 }
6161 stringBuilder . Clear ( ) ;
6262 #endif
@@ -65,10 +65,10 @@ public static void Log(object message, UnityEngine.Object context)
6565 /// <summary>
6666 /// Logs multiple messages as a single statement to the Unity console.
6767 /// </summary>
68- public static void Log ( params object [ ] messages )
68+ public static void Message ( params object [ ] messages )
6969 {
7070 #if UNITY_EDITOR || DEVELOPMENT_BUILD
71- stringBuilder . Append ( Debug . prefix ) ;
71+ stringBuilder . Append ( Log . prefix ) ;
7272 Join ( messages ) ;
7373 UnityEngine . Debug . Log ( stringBuilder ) ;
7474 stringBuilder . Clear ( ) ;
@@ -78,13 +78,13 @@ public static void Log(params object[] messages)
7878 /// <summary>
7979 /// Logs a warning message to the Unity console.
8080 /// </summary>
81- public static void LogWarning ( object message )
81+ public static void Warning ( object message )
8282 {
8383 #if UNITY_EDITOR || DEVELOPMENT_BUILD
8484 if ( message != null ) {
85- UnityEngine . Debug . LogWarning ( stringBuilder . Append ( Debug . prefix ) . Append ( message ) ) ;
85+ UnityEngine . Debug . LogWarning ( stringBuilder . Append ( Log . prefix ) . Append ( message ) ) ;
8686 } else {
87- UnityEngine . Debug . LogWarning ( stringBuilder . Append ( Debug . prefix ) . Append ( Debug . nullReference ) ) ;
87+ UnityEngine . Debug . LogWarning ( stringBuilder . Append ( Log . prefix ) . Append ( Log . nullReference ) ) ;
8888 }
8989 stringBuilder . Clear ( ) ;
9090 #endif
@@ -93,13 +93,13 @@ public static void LogWarning(object message)
9393 /// <summary>
9494 /// Logs a warning message to the Unity console under a given context.
9595 /// </summary>
96- public static void LogWarning ( object message , UnityEngine . Object context )
96+ public static void Warning ( object message , UnityEngine . Object context )
9797 {
9898 #if UNITY_EDITOR || DEVELOPMENT_BUILD
9999 if ( message != null ) {
100- UnityEngine . Debug . LogWarning ( stringBuilder . Append ( Debug . prefix ) . Append ( message ) , context ) ;
100+ UnityEngine . Debug . LogWarning ( stringBuilder . Append ( Log . prefix ) . Append ( message ) , context ) ;
101101 } else {
102- UnityEngine . Debug . LogWarning ( stringBuilder . Append ( Debug . prefix ) . Append ( Debug . nullReference ) , context ) ;
102+ UnityEngine . Debug . LogWarning ( stringBuilder . Append ( Log . prefix ) . Append ( Log . nullReference ) , context ) ;
103103 }
104104 stringBuilder . Clear ( ) ;
105105 #endif
@@ -109,10 +109,10 @@ public static void LogWarning(object message, UnityEngine.Object context)
109109 /// Logs multiple warning messages as a single statement to the Unity
110110 /// console.
111111 /// </summary>
112- public static void LogWarning ( params object [ ] messages )
112+ public static void Warning ( params object [ ] messages )
113113 {
114114 #if UNITY_EDITOR || DEVELOPMENT_BUILD
115- stringBuilder . Append ( Debug . prefix ) ;
115+ stringBuilder . Append ( Log . prefix ) ;
116116 Join ( messages ) ;
117117 UnityEngine . Debug . LogWarning ( stringBuilder ) ;
118118 stringBuilder . Clear ( ) ;
@@ -122,13 +122,13 @@ public static void LogWarning(params object[] messages)
122122 /// <summary>
123123 /// Logs an error message to the Unity console.
124124 /// </summary>
125- public static void LogError ( object message )
125+ public static void Error ( object message )
126126 {
127127 #if UNITY_EDITOR || DEVELOPMENT_BUILD
128128 if ( message != null ) {
129- UnityEngine . Debug . LogError ( stringBuilder . Append ( Debug . prefix ) . Append ( message ) ) ;
129+ UnityEngine . Debug . LogError ( stringBuilder . Append ( Log . prefix ) . Append ( message ) ) ;
130130 } else {
131- UnityEngine . Debug . LogError ( stringBuilder . Append ( Debug . prefix ) . Append ( Debug . nullReference ) ) ;
131+ UnityEngine . Debug . LogError ( stringBuilder . Append ( Log . prefix ) . Append ( Log . nullReference ) ) ;
132132 }
133133 stringBuilder . Clear ( ) ;
134134 #endif
@@ -137,13 +137,13 @@ public static void LogError(object message)
137137 /// <summary>
138138 /// Logs an error message to the Unity console under a given context.
139139 /// </summary>
140- public static void LogError ( object message , UnityEngine . Object context )
140+ public static void Error ( object message , UnityEngine . Object context )
141141 {
142142 #if UNITY_EDITOR || DEVELOPMENT_BUILD
143143 if ( message != null ) {
144- UnityEngine . Debug . LogError ( stringBuilder . Append ( Debug . prefix ) . Append ( message ) , context ) ;
144+ UnityEngine . Debug . LogError ( stringBuilder . Append ( Log . prefix ) . Append ( message ) , context ) ;
145145 } else {
146- UnityEngine . Debug . LogError ( stringBuilder . Append ( Debug . prefix ) . Append ( Debug . nullReference ) , context ) ;
146+ UnityEngine . Debug . LogError ( stringBuilder . Append ( Log . prefix ) . Append ( Log . nullReference ) , context ) ;
147147 }
148148 stringBuilder . Clear ( ) ;
149149 #endif
@@ -153,10 +153,10 @@ public static void LogError(object message, UnityEngine.Object context)
153153 /// Logs multiple error messages as a single statement to the Unity
154154 /// console.
155155 /// </summary>
156- public static void LogError ( params object [ ] messages )
156+ public static void Error ( params object [ ] messages )
157157 {
158158 #if UNITY_EDITOR || DEVELOPMENT_BUILD
159- stringBuilder . Append ( Debug . prefix ) ;
159+ stringBuilder . Append ( Log . prefix ) ;
160160 Join ( messages ) ;
161161 UnityEngine . Debug . LogError ( stringBuilder ) ;
162162 stringBuilder . Clear ( ) ;
@@ -171,7 +171,7 @@ private static void Join(object[] messages)
171171 #if UNITY_EDITOR || DEVELOPMENT_BUILD
172172 if ( messages == null )
173173 {
174- stringBuilder . Append ( Debug . nullReference ) ;
174+ stringBuilder . Append ( Log . nullReference ) ;
175175 return ;
176176 }
177177
@@ -180,9 +180,9 @@ private static void Join(object[] messages)
180180 object message = messages [ i ] ;
181181
182182 if ( message != null ) {
183- stringBuilder . Append ( message ) . Append ( Debug . delimiter ) ;
183+ stringBuilder . Append ( message ) . Append ( Log . delimiter ) ;
184184 } else {
185- stringBuilder . Append ( Debug . nullReference ) . Append ( Debug . delimiter ) ;
185+ stringBuilder . Append ( Log . nullReference ) . Append ( Log . delimiter ) ;
186186 }
187187 }
188188
@@ -193,7 +193,7 @@ private static void Join(object[] messages)
193193 if ( lastMessage != null ) {
194194 stringBuilder . Append ( lastMessage ) ;
195195 } else {
196- stringBuilder . Append ( Debug . nullReference ) ;
196+ stringBuilder . Append ( Log . nullReference ) ;
197197 }
198198 }
199199 #endif
0 commit comments