### Question:
LoggerSpaceManager { public static Logger getLoggerBySpace(String name, String spaceName) { ClassLoader callerClassLoader = ClassLoaderUtil.getCallerClassLoader(); return getLoggerBySpace(name, spaceName, callerClassLoader); }  static Logger getLoggerBySpace(String name, String spaceName); static Logger getLoggerBySpace(String name, SpaceId spaceId,
                                          Map<String, String> properties); static Logger getLoggerBySpace(String name, String spaceName,
                                          ClassLoader spaceClassloader); static Logger getLoggerBySpace(String name, SpaceId spaceId,
                                          Map<String, String> properties,
                                          ClassLoader spaceClassloader); static Logger setLoggerLevel(String loggerName, String spaceName,
                                        AdapterLevel adapterLevel); static Logger setLoggerLevel(String loggerName, SpaceId spaceId,
                                        AdapterLevel adapterLevel); static ILoggerFactory removeILoggerFactoryBySpaceName(String spaceName); static ILoggerFactory removeILoggerFactoryBySpaceId(SpaceId spaceId);  }### Answer:
@Test public void TestDisableLoggerSpaceFactory() { System.setProperty(SOFA_MIDDLEWARE_LOG_DISABLE_PROP_KEY, "true"); Logger logger = LoggerSpaceManager.getLoggerBySpace("com.foo.Bar", "com.alipay.sofa.rpc"); Logger logger2 = LoggerSpaceManager.getLoggerBySpace("com.foo.Bar", "com.alipay.sofa.rpc"); Assert.assertSame(logger, logger2); Assert.assertSame(logger, Constants.DEFAULT_LOG); System.setProperty(SOFA_MIDDLEWARE_LOG_DISABLE_PROP_KEY, "false"); }