64 lines
1.4 KiB
C#
64 lines
1.4 KiB
C#
#if !NOT_CLIENT && !ROBOT
|
|
using System;
|
|
|
|
namespace ET
|
|
{
|
|
public class UnityLogger: ILog
|
|
{
|
|
public void Trace(string msg)
|
|
{
|
|
UnityEngine.Debug.Log(msg);
|
|
}
|
|
|
|
public void Debug(string msg)
|
|
{
|
|
UnityEngine.Debug.Log(msg);
|
|
}
|
|
|
|
public void Info(string msg)
|
|
{
|
|
UnityEngine.Debug.Log(msg);
|
|
}
|
|
|
|
public void Warning(string msg)
|
|
{
|
|
UnityEngine.Debug.LogWarning(msg);
|
|
}
|
|
|
|
public void Error(string msg)
|
|
{
|
|
UnityEngine.Debug.LogError(msg);
|
|
}
|
|
|
|
public void Error(Exception e)
|
|
{
|
|
UnityEngine.Debug.LogException(e);
|
|
}
|
|
|
|
public void Trace(string message, params object[] args)
|
|
{
|
|
UnityEngine.Debug.LogFormat(message, args);
|
|
}
|
|
|
|
public void Warning(string message, params object[] args)
|
|
{
|
|
UnityEngine.Debug.LogWarningFormat(message, args);
|
|
}
|
|
|
|
public void Info(string message, params object[] args)
|
|
{
|
|
UnityEngine.Debug.LogFormat(message, args);
|
|
}
|
|
|
|
public void Debug(string message, params object[] args)
|
|
{
|
|
UnityEngine.Debug.LogFormat(message, args);
|
|
}
|
|
|
|
public void Error(string message, params object[] args)
|
|
{
|
|
UnityEngine.Debug.LogErrorFormat(message, args);
|
|
}
|
|
}
|
|
}
|
|
#endif |