예제 #1
0
        public static void LogException(System.Exception exception)
        {
            if (XLogger.IsEnable())
            {
                XLogger.CreateLogger();
#if XLOGGER_CONSOLELOG
                m_logger.LogException(exception);
#endif
                string str = m_strInfoException.Collection(exception.ToString());
                XLogger.Push(str);
                XLogger.PushDump("Exception", exception.ToString());
            }
        }
예제 #2
0
        public static void LogWarning(object msg)
        {
            if (XLogger.IsEnable())
            {
                XLogger.CreateLogger();
                string str = m_strInfoWarning.Collection(msg.ToString());
#if XLOGGER_CONSOLELOG
                m_logger.LogWarning(str);
#endif
                XLogger.Push(str);
                XLogger.PushDump("Warning", msg);
            }
        }