-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSimpleDebuger.cs
More file actions
36 lines (30 loc) · 1.11 KB
/
Copy pathSimpleDebuger.cs
File metadata and controls
36 lines (30 loc) · 1.11 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
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using UnityEngine;
public static class SimpleDebuger
{
private const string UnityLogPrefix = "YDUnity";
[Conditional("VERBOSE_LOG")]
public static void LogVerbose(string tag, string message)
{
UnityEngine.Debug.Log(string.Format("[{0}][VERB][{1}]{2}", UnityLogPrefix, tag, message));
}
[Conditional("DEBUG")]
public static void LogDebug(string tag, string message)
{
UnityEngine.Debug.Log(string.Format("[{0}][DEBUG][{1}]{2}", UnityLogPrefix, tag, message));
}
public static void LogInfo(string tag, string message)
{
UnityEngine.Debug.Log(string.Format("[{0}][INFO][{1}]{2}", UnityLogPrefix, tag, message));
}
public static void LogWarn(string tag, string message)
{
UnityEngine.Debug.LogWarning(string.Format("[{0}][WARN][{1}]{2}", UnityLogPrefix, tag, message));
}
public static void LogError(string tag, string message)
{
UnityEngine.Debug.LogError(string.Format("[{0}][ERRO][{1}]{2}", UnityLogPrefix, tag, message));
}
}