Skip to content

Commit b9f3b41

Browse files
author
caiyuwei
committed
docs: readme update
1 parent daf1d7e commit b9f3b41

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

readme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,11 @@ val cacheDir = File(context.applicationContext.cacheDir, "http")
191191
HttpResponseCache.install(cacheDir, 1024 * 1024 * 128)
192192
```
193193

194+
### SVGALogger
195+
Updated the internal log output, which can be managed and controlled through SVGALogger. It is not activated by default. Developers can also implement the ILogger interface to capture and collect logs externally to facilitate troubleshooting
196+
Set whether the log is enabled through the `setLogEnabled` method
197+
Inject a custom ILogger implementation class through the `injectSVGALoggerImp` method
198+
194199
## Features
195200

196201
Here are many feature samples.

readme.zh.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@ val cacheDir = File(context.applicationContext.cacheDir, "http")
176176
HttpResponseCache.install(cacheDir, 1024 * 1024 * 128)
177177
```
178178

179+
### SVGALogger
180+
更新了内部 log 输出,可通过 SVGALogger 去管理和控制,默认是未启用 log 输出,开发者们也可以实现 ILogger 接口,做到外部捕获收集 log,方便排查问题
181+
通过 `setLogEnabled` 方法设置日志是否开启
182+
通过 `injectSVGALoggerImp` 方法注入自定义 ILogger 实现类
183+
179184
## 功能示例
180185

181186
* [使用位图替换指定元素。](https://github.com/yyued/SVGAPlayer-Android/wiki/Dynamic-Image)

0 commit comments

Comments
 (0)