12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #if UNITY
- 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
|