Android Library for remote debugging service (remote logcat)
-
Add it into the root-level build.gradle to the end of repositories:
allprojects { repositories { ... maven { url 'https://jitpack.io' } } }
-
Add the dependency into the app-level build.gradle:
dependencies { compile 'com.github.mobile-dev-pro:remote-logcat:VERSION' }
-
Init library in the main application class in onCreate() method:
public class App extends Application {
@Override
public void onCreate() {
super.onCreate();
RemoteLog.init(this, "token here");
}
}
- Add user's name or login for logs (if it needed):
RemoteLog.setUserInfo(
new UserInfoModel([user's name or user's login here])
);
- Send log:
- debug:
RemoteLog.d("log tag here", "message text here");
- error:
RemoteLog.e("log tag here", "error text here");
- See logs on web-page http://api.mobile-dev.pro/applog/
- Sign-Up