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