using RudderSdk.Core.Abstractions;
using UnityEngine;

namespace RudderSdk.Unity
{
  public sealed class UnityDebugLoggerSink : IUnityLoggerSink
  {
    public void Log(RudderLogLevel level, string message)
    {
      switch (level)
      {
        case RudderLogLevel.Warning:
          Debug.LogWarning("[Rudder] " + message);
          break;
        case RudderLogLevel.Error:
          Debug.LogError("[Rudder] " + message);
          break;
        default:
          Debug.Log("[Rudder] " + message);
          break;
      }
    }
  }
}
