/************************************************************************* * Copyright © 2018 Mogoson. All rights reserved. *------------------------------------------------------------------------ * File : UnityDebugger.cs * Description : Debugger for unity editor. *------------------------------------------------------------------------ * Author : Mogoson * Version : 0.1.0 * Date : 9/19/2018 * Description : Initial development version. *************************************************************************/ using MGS.Common.DesignPattern; using UnityEngine; namespace MGS.Logger { /// /// Debugger for unity editor. /// public sealed class UnityDebugger : Singleton, Common.Logger.ILogger { #region Private Method /// /// Constructor. /// private UnityDebugger() { } #endregion #region Public Method /// /// Logs a formatted message. /// /// A composite format string. /// Format arguments. public void Log(string format, params object[] args) { Debug.LogFormat(format, args); } /// /// Logs a formatted error message. /// /// A composite format string. /// Format arguments. public void LogError(string format, params object[] args) { Debug.LogErrorFormat(format, args); } /// /// Logs a formatted warning message. /// /// A composite format string. /// Format arguments. public void LogWarning(string format, params object[] args) { Debug.LogWarningFormat(format, args); } #endregion } }