Initial commit

This commit is contained in:
2026-06-02 18:57:47 -04:00
commit 59d26a915d
268 changed files with 41240 additions and 0 deletions
+59
View File
@@ -0,0 +1,59 @@
using System;
using UnityEngine;
using UnityEngine.TestTools;
using Object = UnityEngine.Object;
namespace BracerLib.Utility
{
[ExcludeFromCoverage]
public class UnityLogger : MonoBehaviour, ILogger
{
public ILogHandler logHandler
{
get => Debug.unityLogger.logHandler;
set => Debug.unityLogger.logHandler = value;
}
public bool logEnabled
{
get => Debug.unityLogger.logEnabled;
set => Debug.unityLogger.logEnabled = value;
}
public LogType filterLogType
{
get => Debug.unityLogger.filterLogType;
set => Debug.unityLogger.filterLogType = value;
}
public void LogFormat(LogType logType, Object context, string format, params object[] args) => Debug.unityLogger.LogFormat(logType, context, format, args);
public void LogException(Exception exception, Object context) => Debug.unityLogger.LogException(exception, context);
public bool IsLogTypeAllowed(LogType logType) => Debug.unityLogger.IsLogTypeAllowed(logType);
public void Log(LogType logType, object message) => Debug.unityLogger.Log(logType, message);
public void Log(LogType logType, object message, Object context) => Debug.unityLogger.Log(logType, message, context);
public void Log(LogType logType, string logTag, object message) => Debug.unityLogger.Log(logType, logTag, message);
public void Log(LogType logType, string logTag, object message, Object context) => Debug.unityLogger.Log(logType, logTag, message, context);
public void Log(object message) => Debug.unityLogger.Log(message);
public void Log(string logTag, object message) => Debug.unityLogger.Log(logTag, message);
public void Log(string logTag, object message, Object context) => Debug.unityLogger.Log(logTag, message, context);
public void LogWarning(string logTag, object message) => Debug.unityLogger.LogWarning(logTag, message);
public void LogWarning(string logTag, object message, Object context) => Debug.unityLogger.LogWarning(logTag, message, context);
public void LogError(string logTag, object message) => Debug.unityLogger.LogError(logTag, message);
public void LogError(string logTag, object message, Object context) => Debug.unityLogger.LogError(logTag, message, context);
public void LogFormat(LogType logType, string format, params object[] args) => Debug.unityLogger.LogFormat(logType, format, args);
public void LogException(Exception exception) => Debug.unityLogger.LogException(exception);
}
}