2019-04-05 08:36:20 -04:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
namespace UnityAtoms.Logger
|
|
|
|
{
|
|
|
|
public static class AtomsLogger
|
|
|
|
{
|
2019-04-08 10:14:50 -04:00
|
|
|
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
|
2019-04-08 10:14:50 -04:00
|
|
|
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
|
2019-04-08 10:14:50 -04:00
|
|
|
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
|
2019-04-08 10:14:50 -04:00
|
|
|
Debug.LogError(LOG_PREFIX + msg);
|
2019-04-12 03:17:47 -04:00
|
|
|
#endif
|
2019-04-05 08:36:20 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|