Exemple #1
0
        public static void LogWarning(object msg, UnityEngine.Object obj)
        {
            if (XLogger.IsEnable())
            {
                XLogger.CreateLogger();
                string str = m_strInfoWarning.Collection(msg.ToString());
#if XLOGGER_CONSOLELOG
                m_logger.LogWarning(str, obj);
#endif
                XLogger.Push(str);
                XLogger.PushDump("Warning", msg, obj);
            }
        }
Exemple #2
0
        public static void LogException(System.Exception exception, UnityEngine.Object obj)
        {
            if (XLogger.IsEnable())
            {
                XLogger.CreateLogger();
#if XLOGGER_CONSOLELOG
                m_logger.LogException(exception, obj);
#endif
                string str = m_strInfoException.Collection(exception.ToString());
                XLogger.Push(str);
                XLogger.PushDump("Exception", exception.ToString(), obj);
            }
        }
Exemple #3
0
        public static void LogError(object msg)
        {
            if (XLogger.IsEnable())
            {
                XLogger.CreateLogger();
                string str = m_strInfoError.Collection(msg.ToString());
#if XLOGGER_CONSOLELOG
                m_logger.LogError(str);
#endif
                XLogger.Push(str);
                XLogger.PushDump("Error", msg);
            }
        }