android-log - android 扩展日志库


Apache
Android
Java

软件简介

一个android平台上的扩展日志库。

用法

1.禁止/启用日志

Log.setEnabled(true); Log.setEnabled(false);

2.设置全局日志标签

Log.setTag("Android");

3.简单使用

Log.d("test");


Log.v("test");


 Log.i("test");


 Log.w("test");


 Log.e("test");

4.简单使用 -- 设置标签

Log.d("TAG","test");


 Log.v("TAG","test");


Log.i("TAG","test");


Log.w("TAG","test");


Log.e("TAG","test");

5.高级使用

Log.d("test",new Throwable("test"));


 Log.v("test",new Throwable("test"));


Log.i("test",new Throwable("test"));


 Log.w("test",new Throwable("test"));


Log.e("test",new Throwable("test"));

6.高级使用 – 设置标签

Log.d("TAG","test",new Throwable("test"));


Log.v("TAG","test",new Throwable("test"));


Log.i("TAG","test",new Throwable("test"));


Log.w("TAG","test",new Throwable("test"));


Log.e("TAG","test",new Throwable("test")); [](https://github.com/snowdream/android-log#license)