Files
test/Assets/PerfectWorld/Scripts/Common/Logger.cs
T
2025-12-23 14:19:04 +07:00

37 lines
774 B
C#

#define ENALBE_LOGGING
using UnityEngine;
namespace BrewMonster
{
public class BMLogger
{
public static void Log(string message)
{
#if ENALBE_LOGGING
Debug.Log(message);
#endif
}
public static void LogError(string message)
{
#if ENALBE_LOGGING
Debug.LogError(message);
#endif
}
public static void LogWarning(string message)
{
#if ENALBE_LOGGING
Debug.LogWarning(message);
#endif
}
public static void LogMono(object source, string message)
{
#if ENALBE_LOGGING
if (DebugRegistry.IsEnabled(source))
UnityEngine.Debug.LogError($"[{source}] {message}");
#endif
}
}
}