Initial commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user