本文整理匯總了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);
}
示例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);
}
示例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);
}
示例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());
}