Try this:
Download and intialize library:
- Download Loger library via dependencies
compile 'sk.rogansky.logger:logger:+'
If you want to automatically send fatal exceptions to Logger app, initialize Logger library in onCreate in App class (don't forget add class to manifest)
public class MyApp extends Application {
@Override
public void onCreate() {
super.onCreate();
Log.initialize(getApplicationContext());
// to send fatal exceptions in RELEASE mode too, initialize Logger with unique string channel Log.initialize(context, channel);
}
}
Add class to manifest <application android:name=".MyApp"....
If you want to receive details about network, add permission to manifest <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Logger library has the same interface as java logger, but has some nice features.
After initialization will library automatically send fatal exceptions to Logger app.
You can send your message too. Just add action to call method.
import sk.rogansky.logger.Log;
Log.d(Log.Action.SHOW_NOTIFICATION, "TAG", "Message");
Log.d(Log.Action.SAVE, "TAG", "Message"); // it will save locally in Logger app
Everything works local and offline, but testers can share logs via Logger app.