diff --git a/.idea/gradle.xml b/.idea/gradle.xml
index f57a35b..a51452b 100644
--- a/.idea/gradle.xml
+++ b/.idea/gradle.xml
@@ -12,7 +12,6 @@
-
diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml
index a5f05cd..460527a 100644
--- a/.idea/jarRepositories.xml
+++ b/.idea/jarRepositories.xml
@@ -21,5 +21,10 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/README.md b/README.md
index 7f06e3c..d67d77b 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,6 @@
# XLogHelper
基于微信 xlog 开源 日志框架
+
+# 使用介绍
+
+[点击查看博客](https://allens.icu/posts/f4408143/#more)
\ No newline at end of file
diff --git a/app/build.gradle b/app/build.gradle
index 82c3ca7..1c90fc7 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -27,13 +27,6 @@ android {
}
}
- sourceSets {
- main {
- jniLibs {
- srcDir "../xlog/libs"
- }
- }
- }
}
dependencies {
@@ -47,5 +40,6 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
- implementation project(':xlog')
+// implementation project(':xlog')
+ implementation 'com.github.JiangHaiYang01:XLogHelper:0.0.1'
}
\ No newline at end of file
diff --git a/app/src/main/java/com/allens/xloghelper/MainActivity.kt b/app/src/main/java/com/allens/xloghelper/MainActivity.kt
index 6b17d78..ef2ea2b 100644
--- a/app/src/main/java/com/allens/xloghelper/MainActivity.kt
+++ b/app/src/main/java/com/allens/xloghelper/MainActivity.kt
@@ -13,8 +13,14 @@ class MainActivity : AppCompatActivity() {
add.setOnClickListener {
- for (i in 1..20000) {
- XLogHelper.i("======================> %s", i)
+ for (i in 1..10) {
+ XLogHelper.i("======================>i %s", i)
+ }
+ for (i in 1..10) {
+ XLogHelper.e("======================>e %s", i)
+ }
+ for (i in 1..10) {
+ XLogHelper.v("======================>v %s", i)
}
}
diff --git a/app/src/main/java/com/allens/xloghelper/MyApp.kt b/app/src/main/java/com/allens/xloghelper/MyApp.kt
index ba1c92d..0c0f0cf 100644
--- a/app/src/main/java/com/allens/xloghelper/MyApp.kt
+++ b/app/src/main/java/com/allens/xloghelper/MyApp.kt
@@ -12,6 +12,7 @@ class MyApp :Application(){
XLogHelper.create(this)
.setModel(LogModel.Async)
.setTag("TAG")
+ .setDebug(true)
.setConsoleLogOpen(true)
.setLogLevel(LogLevel.LEVEL_INFO)
.setNamePreFix("log")
diff --git a/build.gradle b/build.gradle
index 6553a37..94b4232 100644
--- a/build.gradle
+++ b/build.gradle
@@ -18,6 +18,7 @@ allprojects {
repositories {
google()
jcenter()
+ maven { url 'https://www.jitpack.io' }
}
}
diff --git a/settings.gradle b/settings.gradle
index 1c93c3e..4a2013e 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -1,4 +1,3 @@
-include ':mars_xlog_sdk'
include ':xlog'
include ':app'
rootProject.name = "XLogHelper"
\ No newline at end of file