Skip to content

Commit

Permalink
Publish 1.2.0 Release.
Browse files Browse the repository at this point in the history
  • Loading branch information
Muyangmin authored and Muyangmin committed Aug 19, 2016
1 parent 0b6461c commit 53b8ae0
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 16 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG.md
@@ -0,0 +1,21 @@
#### Version 1.2.0 *(2016-08-19)*
* New: unlimited length log and max length per line support.
* New: convenient method for object params only.
* New: support auto tag *(Disabled by default)*.


* 无限长字符串支持和单行日志长度限制支持, 解决logcat 4K日志长度截断问题。
* 优化无msg打印对象的行为。
* 支持自动设置tag(默认关闭).

#### Version 1.1.0 *(2016-08-11)*
* New: support log stack offset. This is useful when print log in meaningless methods
(typically for code reuse), but often unnecessary.
* New: add a static `newBuilder()` method in `PLogConfig` class.


* 支持日志栈偏移,可以用于跳过指定层级的方法,用于一些特殊场景。
* 新增`newBuilder`方法。

#### Version 1.0.0 *(2016-07-18)*
Initial release.
36 changes: 21 additions & 15 deletions README.md
Expand Up @@ -10,15 +10,16 @@ PLog在设计的时候还充分考虑实际项目中对功能的需求,提供
## Basic Usage
1.Import via gradle:
```Groovy
compile 'org.mym.plog:android-plog:1.0.0'
compile 'org.mym.plog:android-plog:1.2.0'
```
2.Initialize PLog before any log**(Optional)**:
2.Initialize PLog before any log**(Optional)**.
Typical usage:
```Java
PLog.init(new PLogConfig.Builder()
.globalTag("GlobalTag")
.forceConcatGlobalTag(true)
PLog.init(PLogConfig.newBuilder()
.useAutoTag(true)
.keepInnerClass(true)
.keepLineNumber(true)
.maxLengthPerLine(180)
.build());
```
All settings are **optional**, and here just show a few part of options.Please see doc for
Expand All @@ -33,26 +34,31 @@ advanced usage.
PLog.e("This is an error log.");
```

For full change logs, please see [Here](https://github.com/Muyangmin/Android-PLog/releases).
For full change logs, please see [ChangeLog](./CHANGELOG.md) and/or [Releases](https://github
.com/Muyangmin/Android-PLog/releases).

## 功能特点
* 支持JCenter依赖
* 支持显示行号
* 支持空消息打印(通常用于观察某处是否执行)
* 支持变长参数和自动格式化,从此不用手动拼接参数
* 支持精确的loggable控制,只要你愿意,甚至可以精确到每条Tag、每行Msg
* 支持Android Studio控制台点击可跳转到源文件对应行
* 支持显示行号
* 支持无Tag快捷打印
* 支持设置全局Tag,同时支持每条日志指定Tag
* 支持空消息打印(通常用于观察某处是否执行)
* 支持变长参数和自动格式化,从此不用手动拼接参数
* **支持Android Studio控制台点击可跳转到源文件对应行, 还可以通过栈帧偏移控制跳转位置**
* **支持自动设置Tag**
* **无限长字符串打印, 同时支持自动换行**
* **支持第三方日志接入(通常用于上传日志)**

## 预备加入/考虑是否需要的功能
## 预备加入/正在考虑是否需要的功能
* 保存日志到文件
* 无限长字符串打印

## Contribution
欢迎试用PLog,如有功能上不爽的地方欢迎指出,并请参考KLog和Logger能否暂时满足需求。
另外也欢迎Star/Fork/PR,但PR我会视情况决定是否接受,请大家见谅^_^
## Contribution & Contact
Thanks for using PLog, this library is still in active development, any feature request/bug
report is welcome.
Please feel free to contact me by using following way:

**Email: muyangmin@foxmail.com**

## Licence
```
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Expand Up @@ -18,7 +18,7 @@
# org.gradle.parallel=true

#Add jcenter upload support
VERSION_NAME=1.1.0
VERSION_NAME=1.2.0
BINTRAY_REPO=org.mym
GROUP=org.mym.plog
POM_NAME=Android-PLog
Expand Down
Empty file modified gradlew 100644 → 100755
Empty file.

0 comments on commit 53b8ae0

Please sign in to comment.