// Copyright (c) 2015 - 2023 Doozy Entertainment. All Rights Reserved. // This code can only be used under the standard Unity Asset Store End User License Agreement // A Copy of the EULA APPENDIX 1 is available at http://unity3d.com/company/legal/as_terms using UnityEngine; namespace Doozy.Runtime.Common.Utils { /// Class used as a bridge to connect the customized with the Debug class in Unity public class UnityDebug : ILogger { /// Log a message to the console /// String or object to be converted to string representation for display public void Log(object message) => Debug.Log(message); /// Log a message to the console /// String or object to be converted to string representation for display /// Object to which the message applies public void Log(object message, Object context) => Debug.Log(message, context); /// Log a warning message to the console /// String or object to be converted to string representation for display public void LogWarning(object message) => Debug.LogWarning(message); /// Log a warning message to the console /// String or object to be converted to string representation for display /// Object to which the message applies public void LogWarning(object message, Object context) => Debug.Log(message, context); /// Log an error message to the console /// String or object to be converted to string representation for display public void LogError(object message) => Debug.Log(message); /// Log an error message to the console /// String or object to be converted to string representation for display /// Object to which the message applies public void LogError(object message, Object context) => Debug.Log(message, context); } }