Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

翻译文档同步计划-内容不一致 #12

Closed
GlideDocsCNBot opened this issue Oct 16, 2017 · 0 comments
Closed

翻译文档同步计划-内容不一致 #12

GlideDocsCNBot opened this issue Oct 16, 2017 · 0 comments

Comments

@GlideDocsCNBot
Copy link
Collaborator

概述

此 Issue 由 Sync Robot 自动创建,详情请参见 #6
本次扫描结果: 新增:0 , 修改: 2, 删除: 0

文件变化列表

变更类型 文件名
UPDATED 2017-04-17-generatedapi.md
UPDATED 2017-03-14-configuration.md

文件具体变更信息如下(仅展示UPDATED):

--- 

+++ 

@@ -72,6 +72,11 @@

    dependencies {
      kapt 'com.github.bumptech.glide:compiler:4.2.0'
    }
+   ```
+  Note that you must also include the ``kotlin-kapt`` plugin in your ``build.gradle`` file:
+
+   ```groovy
+   apply plugin: 'kotlin-kapt'
    ```
 
    To use ``kapt``, see the [official documentation][14].
--- 

+++ 

@@ -197,7 +197,7 @@

 
 #### UncaughtThrowableStrategy
 
-When loading a bitmap, if an exception happens (e.g. `OutOfMemoryException`), glide will use a `GlideExecutor.UncaughtThrowableStrategy`. 
+When loading a bitmap, if an exception happens (e.g. `OutOfMemoryException`), Glide will use a `GlideExecutor.UncaughtThrowableStrategy`. 
 The default strategy is to log the exception in the device logcat. The strategy is customizable since glide 4.2.0. It can be passed to a disk executor and/or a resize executor:
 
 ```java
@@ -208,6 +208,20 @@

     final UncaughtThrowableStrategy myUncaughtThrowableStrategy = new ...
     builder.setDiskCacheExecutor(newDiskCacheExecutor(myUncaughtThrowableStrategy));
     builder.setResizeExecutor(newSourceExecutor(myUncaughtThrowableStrategy));
+  }
+}
+```
+
+#### Log level
+
+For a subset of well formatted logs, including lines logged when a request fails, you can use [``setLogLevel``][37] with one of the values from Android's [``Log``][38] class. Generally speaking ``log.VERBOSE`` will make logs noisier and ``Log.ERROR`` will make logs quieter, but see [the javadoc][37] for details.
+
+```java
+@GlideModule
+public class YourAppGlideModule extends AppGlideModule {
+  @Override
+  public void applyOptions(Context context, GlideBuilder builder) {
+    builder.setLogLevel(Log.DEBUG);
   }
 }
 ```
@@ -403,3 +417,5 @@

 [34]: {{ site.baseurl }}/javadocs/410/com/bumptech/glide/RequestManager.html
 [35]: {{ site.baseurl }}/javadocs/410/com/bumptech/glide/RequestManager.html#applyDefaultRequestOptions-com.bumptech.glide.request.RequestOptions-
 [36]: {{ site.baseurl }}/javadocs/410/com/bumptech/glide/RequestManager.html#setDefaultRequestOptions-com.bumptech.glide.request.RequestOptions-
+[37]: {{ site.baseurl }}/javadocs/420/com/bumptech/glide/GlideBuilder.html#setLogLevel-int-
+[38]: https://developer.android.com/reference/android/util/Log.html
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant