xlog

a log lib for Android.

License

License

GroupId

GroupId

io.github.yueliangrensheng
ArtifactId

ArtifactId

xlog
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

aar
Description

Description

xlog
a log lib for Android.
Project URL

Project URL

https://github.com/yueliangrensheng/XLog
Source Code Management

Source Code Management

https://github.com/yueliangrensheng/XLog/tree/master

Download xlog

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.yueliangrensheng/xlog/ -->
<dependency>
    <groupId>io.github.yueliangrensheng</groupId>
    <artifactId>xlog</artifactId>
    <version>1.0.2</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/io.github.yueliangrensheng/xlog/
implementation 'io.github.yueliangrensheng:xlog:1.0.2'
// https://jarcasting.com/artifacts/io.github.yueliangrensheng/xlog/
implementation ("io.github.yueliangrensheng:xlog:1.0.2")
'io.github.yueliangrensheng:xlog:aar:1.0.2'
<dependency org="io.github.yueliangrensheng" name="xlog" rev="1.0.2">
  <artifact name="xlog" type="aar" />
</dependency>
@Grapes(
@Grab(group='io.github.yueliangrensheng', module='xlog', version='1.0.2')
)
libraryDependencies += "io.github.yueliangrensheng" % "xlog" % "1.0.2"
[io.github.yueliangrensheng/xlog "1.0.2"]

Dependencies

compile (1)

Group / Artifact Type Version
androidx.appcompat » appcompat jar 1.1.0

Project Modules

There are no modules declared in this project.

XLog

a Android Log lib

how to use

  1. app/build.gradle 配置如下:
dependencies {
   ...

   implementation 'com.yazao:xlog:1.0.1'
}
  1. init (optional)

在Application or Activity 的 onCreate()方法调用如下方法:

//Log init
Log.init()
    .setLogLevel(BuildConfig.DEBUG ? Log.LogLevel.FULL : Log.LogLevel.NONE)//配置显示log与否 // defalut : LogLevel.FULL
    .setMethodCount(2)//显示方法调用层级数量  //default: 2
    .hideThreadInfo()//隐藏线程信息 // defalut: 显示线程信息
;

  1. use

// example
 Log.i("I am a log");

Versions

Version
1.0.2
1.0.1