SendLog is a diagnostic tool. It will send the log file and a process list from your phone to an email.
This is useful to send to the developer of an application in case it crashes or otherwise misbehaves.
You can choose any of the formats that logcat supports. The default and recommended format is "time".
It will add the output of "top" to the email. This shows the list of processes and the amount of CPU they are using.
SendLog works with all Android versions and all phones and tablets. It will not truncate the log file. The log file is also stored as a text file on the root of the SD card, or the app folder if there's no SD card present.
You can create a home shortcut where you can specify the destination email, format and email client.
Note that other applications such as Facebook, Twitter, Catch Notes, etc will also be listed as possible email clients, but you should not choose any of these because they cannot handle attachments.
For easy reading of the log file on your PC, I recommend androidlogcatviewer.
It has been reported that reading logs is no longer supported in Jelly Bean. I have not been able to verify this.
If SendLog is installed you can invoke it from your application using the following code:
Intent intent = getPackageManager().getLaunchIntentForPackage("org.l6n.sendlog"); intent.setType("5|com.google.android.gm.ComposeActivityGmailemail@example.com"); startActivity(intent);
The first parameter is the format from this zero-based list:
brief, process, tag, thread, raw, time, threadtime, long.
It's possible to omit the second parameter, or the second and third parameters.
You can also add additional parameters to logcat by adding a line like this:
intent.putExtra("filter", "MyApp:D *:I");This is probably most useful for adding filters, as described in the logcat reference.
Add you can also specify the email subject by adding a line like this:
intent.putExtra(Intent.EXTRA_SUBJECT, "whatever you want");This is probably most useful for showing the version of the app that's reporting an error.
Use internal data directory if SD card is not available.
Improve appearance on tablets.
Don't limit the size of the log file. This effectively remove the changes for 1.0.4 to 1.0.6.
Allow the email subject to be specified in the intent.
Send the log output as an attachment instead of as the text of the email. This seems to be the only way to make it work with the Samsung Fascinate and Samsung Epic 4G. This does however mean that you can only send to email, and not to other apps such as Facebook and Catch Notes, even though they will appear in the list of possibilities to send to.
Another fix for 2.x phones. This time for phones that have a large logcat output but don't support the -t option, such as the Samsung Fascinate. This fix does a code version of the -t option.
BTW the 1.0.5 fix also fixed the Samsung Moment.
Fix for LG Ally. The previous fix was for 2.1 phones, but the LG Ally doesn't support this option that all other 2.1 phones support. Now SendLog explicitly checks device compatibility.
Limit the size of the log data for Android versions 2.1 and higher. This option is not available for earlier Android versions. This ensures that the data fits in the email text. The data is limited to 300 lines - that's a bit of an arbitrary limit. Also added a terminator to the email.
Show a progress dialog while it's working.
Add the possibility to specify filters in extras when invoked from another application.
Make the activity translucent.
Make compatible with Android 1.1 (previous versions unnecessarily required 1.5).
Add format and email client to shortcut.
Enable it to create shortcuts where the destination email can be specified.
Add SendLog version to email.
Add "top" output and Android version.
Please send all comments and suggestions to android@L6n.org.