Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
docs: readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
caiyuwei committed Jul 24, 2020
1 parent daf1d7e commit b9f3b41
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ val cacheDir = File(context.applicationContext.cacheDir, "http")
HttpResponseCache.install(cacheDir, 1024 * 1024 * 128)
```

### SVGALogger
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
Set whether the log is enabled through the `setLogEnabled` method
Inject a custom ILogger implementation class through the `injectSVGALoggerImp` method

## Features

Here are many feature samples.
Expand Down
5 changes: 5 additions & 0 deletions readme.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ val cacheDir = File(context.applicationContext.cacheDir, "http")
HttpResponseCache.install(cacheDir, 1024 * 1024 * 128)
```

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

## 功能示例

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

0 comments on commit b9f3b41

Please sign in to comment.