1、简介
Android-log 是一个用于android打印的库
网站:https://github.com/snowdream/android-log
2、用法
1、enable/disable log Log.setEnabled(true); Log.setEnabled(false); 2、set the Tag for the log Log.setTag("Android"); 3、log simple Log.d("test"); Log.v("test"); Log.i("test"); Log.w("test"); Log.e("test"); 4、log advance 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"));
3、下载
方法一、点击下面的jar即可下载。
GroupId | ArtifactId | Latest Version | Updated | Download |
---|---|---|---|---|
com.github.snowdream.android | log | 0.0.1 | 19-Jan-2013 | pom jar javadoc.jar sources.jar |
方法二、Maven方式
<dependency> <groupId>com.github.snowdream.android</groupId> <artifactId>log</artifactId> <version>0.0.1</version> </dependency>