提交 8ddd0207 编写于 作者: Z ZhaoKaiQiang

上传到jCenter,修改réadmet

上级 a20fe7e0
......@@ -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'
}
```
......
......@@ -71,6 +71,7 @@
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.1.0/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/23.1.0/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.github.zhaokaiqiang.klog/library/0.1.0/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/pre-dexed" />
......@@ -85,7 +86,7 @@
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="support-annotations-23.1.0" level="project" />
<orderEntry type="library" exported="" name="appcompat-v7-23.1.0" level="project" />
<orderEntry type="library" exported="" name="library-0.1.0" level="project" />
<orderEntry type="library" exported="" name="support-v4-23.1.0" level="project" />
<orderEntry type="module" module-name="library" exported="" />
</component>
</module>
\ No newline at end of file
......@@ -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')
}
......@@ -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
......
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id=":library" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="com.github.zhaokaiqiang.klog" external.system.module.version="0.0.1" type="JAVA_MODULE" version="4">
<module external.linked.project.id=":library" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="com.github.zhaokaiqiang.klog" external.system.module.version="0.1.0" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android-gradle" name="Android-Gradle">
<configuration>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册