Skip to content

Commit

Permalink
add log i v e ...
Browse files Browse the repository at this point in the history
  • Loading branch information
allens committed Jul 17, 2020
1 parent c73f0ec commit 096fe05
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 12 deletions.
1 change: 0 additions & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# XLogHelper
基于微信 xlog 开源 日志框架

# 使用介绍

[点击查看博客](https://allens.icu/posts/f4408143/#more)
10 changes: 2 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ android {
}
}

sourceSets {
main {
jniLibs {
srcDir "../xlog/libs"
}
}
}
}

dependencies {
Expand All @@ -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'
}
10 changes: 8 additions & 2 deletions app/src/main/java/com/allens/xloghelper/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/com/allens/xloghelper/MyApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ allprojects {
repositories {
google()
jcenter()
maven { url 'https://www.jitpack.io' }
}
}

Expand Down
1 change: 0 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
include ':mars_xlog_sdk'
include ':xlog'
include ':app'
rootProject.name = "XLogHelper"

0 comments on commit 096fe05

Please sign in to comment.