unity-atoms/Source/Utils/AtomsLogger.cs

32 lines
567 B
C#
Raw Normal View History

2019-04-05 08:36:20 -04:00
using UnityEngine;
namespace UnityAtoms.Logger
{
public static class AtomsLogger
{
private const string LOG_PREFIX = "Unity Atoms :: ";
2019-04-05 08:36:20 -04:00
public static void Log(string msg)
{
2019-04-12 03:17:47 -04:00
#if UNITY_EDITOR
Debug.Log(LOG_PREFIX + msg);
2019-04-12 03:17:47 -04:00
#endif
2019-04-05 08:36:20 -04:00
}
public static void Warning(string msg)
{
2019-04-12 03:17:47 -04:00
#if UNITY_EDITOR
Debug.LogWarning(LOG_PREFIX + msg);
2019-04-12 03:17:47 -04:00
#endif
2019-04-05 08:36:20 -04:00
}
public static void Error(string msg)
{
2019-04-12 03:17:47 -04:00
#if UNITY_EDITOR
Debug.LogError(LOG_PREFIX + msg);
2019-04-12 03:17:47 -04:00
#endif
2019-04-05 08:36:20 -04:00
}
}
}