The abstruction of android log framework, support a union interface for the porpular log frameworks.
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
dependencies {
compile 'com.github.zillachan:AndLog:1.1'
}
public class App extends Application {
@Override
public void onCreate() {
super.onCreate();
new Log.Builder().client(new LoggerLog()).logStatus(true);
}
}
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Log.d("==onCreate==");
Log.e("error", new Exception("hahaha"));
Log.e("error info");
}
}