// #define Z_DEBUG_INFO
// #define Z_DEBUG_WARNING
// #define Z_DEBUG_ERROR
// #define BUGGER
using UnityEngine;
namespace UnityEditor.Polybrush
{
///
/// Polybrush debug utility functions
///
internal static class PolyDebug
{
[System.Diagnostics.Conditional("Z_DEBUG_INFO")]
internal static void Log(string message, string color = "000000FF")
{
#if BUGGER
Bugger.Log( string.Format("{1}", color, message), 3 );
#else
Debug.Log( string.Format("{1}", color, message) );
#endif
}
[System.Diagnostics.Conditional("Z_DEBUG_WARNING")]
internal static void LogWarning(string message, string color = "FF00FFFF")
{
Debug.LogWarning( string.Format("{1}", color, message) );
}
[System.Diagnostics.Conditional("Z_DEBUG_ERROR")]
internal static void LogError(string message, string color = "FF0000FF")
{
Debug.LogError( string.Format("{1}", color, message) );
}
}
}