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()); } }
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); } }