首页 > 其他 > 详细

LogManager

时间:2014-09-02 17:13:55      阅读:207      评论:0      收藏:0      [点我收藏+]
public class LogManager
{
    // Fields
    public static bool Debugstate;

    // Methods
    public static void Log(string strText)
    {
        if (Debugstate)
        {
            Debug.Log(strText);
        }
    }

    public static void Log(string strText, Object context)
    {
        if (Debugstate)
        {
            Debug.Log(strText, context);
        }
    }

    public static void LogError(string strText)
    {
        if (Debugstate)
        {
            Debug.LogError(strText);
        }
    }

    public static void LogError(string strText, Object context)
    {
        if (Debugstate)
        {
            Debug.LogError(strText, context);
        }
    }

    public static void LogWarning(string strText)
    {
        if (Debugstate)
        {
            Debug.LogWarning(strText);
        }
    }

    public static void LogWarning(string strText, Object context)
    {
        if (Debugstate)
        {
            Debug.LogWarning(strText, context);
        }
    }
}

 

 

LogManager

原文:http://www.cnblogs.com/123ing/p/3951582.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!