From 8ddd020776802b19b0a8b70b843d8e19830e80f3 Mon Sep 17 00:00:00 2001
From: ZhaoKaiQiang <419927089@qq.com>
Date: Tue, 17 Nov 2015 20:24:17 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=88=B0jCenter=EF=BC=8C?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9r=C3=A9admet?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 14 ++++++++++++--
app/app.iml | 3 ++-
app/build.gradle | 4 ++--
library/build.gradle | 2 +-
library/library.iml | 2 +-
5 files changed, 18 insertions(+), 7 deletions(-)
diff --git a/README.md b/README.md
index 7a11bde..a8d90bd 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
This is a useful log tool for Android
-Android LogCat 工具类,支持行号、所在函数、点击自动跳转、Json格式自定解析打印等功能。
+Android LogCat 工具类,支持行号、所在函数、点击自动跳转、Json格式自定解析打印、存储Log到文件等功能。
中文文档请戳[这里](http://blog.csdn.net/zhaokaiqiang1992/article/details/49837627)。
@@ -46,11 +46,21 @@ you can print a String with json format ,and it will be formated as following
as same as above , but with a tag whitch are set by yourself
![](http://i13.tietuku.com/bc9714547a4f50fe.png)
+###KLog.file()
+
+you can save the log string in to file
+
+```
+ KLog.file(TAG, Environment.getExternalStorageDirectory(), "test.txt", JSON_LONG);
+```
+
+![](http://i5.tietuku.com/91a14048978c91c1.png)
+
##JCenter
```
dependencies {
- compile 'com.github.zhaokaiqiang.klog:library:0.0.1'
+ compile 'com.github.zhaokaiqiang.klog:library:0.1.0'
}
```
diff --git a/app/app.iml b/app/app.iml
index bc0156a..e548541 100644
--- a/app/app.iml
+++ b/app/app.iml
@@ -71,6 +71,7 @@
+
@@ -85,7 +86,7 @@
+
-
\ No newline at end of file
diff --git a/app/build.gradle b/app/build.gradle
index 9bdd010..5ebde99 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -29,6 +29,6 @@ android {
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.1.0'
-// compile 'com.github.zhaokaiqiang.klog:library:0.0.1'
- compile project(':library')
+ compile 'com.github.zhaokaiqiang.klog:library:0.1.0'
+// compile project(':library')
}
diff --git a/library/build.gradle b/library/build.gradle
index 1398574..fba2ac0 100644
--- a/library/build.gradle
+++ b/library/build.gradle
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'
-version = "0.0.1"
+version = "0.1.0"
android {
compileSdkVersion 23
diff --git a/library/library.iml b/library/library.iml
index 72319e6..7961a0c 100644
--- a/library/library.iml
+++ b/library/library.iml
@@ -1,5 +1,5 @@
-
+
--
GitLab