當前位置: 首頁>>代碼示例>>Java>>正文


Java FLog.setMinimumLoggingLevel方法代碼示例

本文整理匯總了Java中com.facebook.common.logging.FLog.setMinimumLoggingLevel方法的典型用法代碼示例。如果您正苦於以下問題:Java FLog.setMinimumLoggingLevel方法的具體用法?Java FLog.setMinimumLoggingLevel怎麽用?Java FLog.setMinimumLoggingLevel使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.facebook.common.logging.FLog的用法示例。


在下文中一共展示了FLog.setMinimumLoggingLevel方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: setUp

import com.facebook.common.logging.FLog; //導入方法依賴的package包/類
@Override
public void setUp() throws Exception {
  super.setUp();
  mActivity = getActivity();
  mImageList = (RecyclerView) mActivity.findViewById(R.id.image_grid);
  mLoaderSelect = (Spinner) mActivity.findViewById(R.id.loader_select);
  mSourceSelect = (Spinner) mActivity.findViewById(R.id.source_select);
  FLog.setMinimumLoggingLevel(FLog.INFO);
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:10,代碼來源:ScrollTest.java

示例2: onCreate

import com.facebook.common.logging.FLog; //導入方法依賴的package包/類
@Override
public void onCreate() {
    super.onCreate();
    FLog.setMinimumLoggingLevel(FLog.VERBOSE);
    Set<RequestListener> listeners = new HashSet<>();
    listeners.add(new RequestLoggingListener());
    ImagePipelineConfig config = ImagePipelineConfig.newBuilder(this)
            .setRequestListeners(listeners)
            .build();
    Fresco.initialize(this, config);
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:12,代碼來源:AnimationApplication.java

示例3: onCreate

import com.facebook.common.logging.FLog; //導入方法依賴的package包/類
@Override
public void onCreate() {
    super.onCreate();
    Set<RequestListener> requestListeners = new HashSet<>();
    requestListeners.add(new RequestLoggingListener());
    ImagePipelineConfig config = ImagePipelineConfig.newBuilder(this)
            // other setters
            .setRequestListeners(requestListeners)
            .build();
    Fresco.initialize(this, config);
    FLog.setMinimumLoggingLevel(FLog.VERBOSE);
}
 
開發者ID:Bleoo,項目名稱:WindowImageView,代碼行數:13,代碼來源:MyApp.java

示例4: onCreate

import com.facebook.common.logging.FLog; //導入方法依賴的package包/類
@Override
public void onCreate() {
  super.onCreate();
  FLog.setMinimumLoggingLevel(FLog.VERBOSE);
  Set<RequestListener> listeners = new HashSet<>();
  listeners.add(new RequestLoggingListener());

  OkHttpClient okHttpClient = new OkHttpClient.Builder()
      .addNetworkInterceptor(new StethoInterceptor())
      .build();

  ImagePipelineConfig imagePipelineConfig =
      OkHttpImagePipelineConfigFactory.newBuilder(this, okHttpClient)
          .setRequestListeners(listeners)
          .setProgressiveJpegConfig(new SimpleProgressiveJpegConfig())
          .setImageDecoderConfig(CustomImageFormatConfigurator.createImageDecoderConfig(this))
          .experiment()
          .setMediaVariationsIndexEnabled(
              new Supplier<Boolean>() {
                @Override
                public Boolean get() {
                  return true;
                }
              })
          .experiment()
          .setBitmapPrepareToDraw(true, 0, Integer.MAX_VALUE, true)
          .experiment()
          .setSmartResizingEnabled(Suppliers.BOOLEAN_TRUE)
          .build();

  ImagePipelineConfig.getDefaultImageRequestConfig().setProgressiveRenderingEnabled(true);

  DraweeConfig.Builder draweeConfigBuilder = DraweeConfig.newBuilder();
  CustomImageFormatConfigurator.addCustomDrawableFactories(this, draweeConfigBuilder);

  draweeConfigBuilder.setDebugOverlayEnabledSupplier(
      DebugOverlaySupplierSingleton.getInstance(getApplicationContext()));

  Fresco.initialize(this, imagePipelineConfig, draweeConfigBuilder.build());

  final Context context = this;
  Stetho.initialize(
      Stetho.newInitializerBuilder(context)
          .enableDumpapp(
              new DumperPluginsProvider() {
                @Override
                public Iterable<DumperPlugin> get() {
                  return new Stetho.DefaultDumperPluginsBuilder(context)
                      .provide(new FrescoStethoPlugin())
                      .finish();
                }
              })
          .enableWebKitInspector(Stetho.defaultInspectorModulesProvider(context))
          .build());
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:56,代碼來源:ShowcaseApplication.java


注:本文中的com.facebook.common.logging.FLog.setMinimumLoggingLevel方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。