unity-atoms/Source/Utils/AtomsLogger.cs

32 lines
567 B
C#
Raw Normal View History

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