SendLog

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.

You can create a home shortcut where you can specify the destination email, format and email client.

You can send to any app that supports attachments, such as Gmail, Dropbox, Skype, etc.

For easy reading of the log file on your PC, I recommend androidlogcatviewer.

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. It is only possible to read log files on Android version 4.1 (Jelly Bean) and later if your phone is rooted.

Developers

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.ComposeActivityGmail|android@l6n.org");
    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.

Download

Google PlayGoogle Play

slideME.orgSlideME

History

Version 1.2 - 02 April 2014
Zip the log file attachment.
Only show email clients in list.
Version 1.1.3 - 12 July 2013
Try reading logs as root if READ_LOGS permssion is not granted. This is a fix for Android version 4.1 and greater. Thanks to Davis for helping me with this fix.
For more information see my blog post.
Version 1.1.2 - 02 October 2011
Use internal data directory if SD card is not available.
Version 1.1.1 - 18 May 2011
Improve appearance on tablets.
Version 1.1.0 - 09 January 2011
Don't limit the size of the log file. This effectively removes the changes for 1.0.4 to 1.0.6.
Version 1.0.8 - 22 October 2010
Allow the email subject to be specified in the intent.
Version 1.0.7 - 06 October 2010
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.
Version 1.0.6 - 29 September 2010
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.
Version 1.0.5 - 14 September 2010
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.
Version 1.0.4 - 18 August 2010
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.
Version 1.0.3 - 28 June 2010
Show a progress dialog while it's working.
Version 1.0.2 - 10 May 2010
Add the possibility to specify filters in extras when invoked from another application.
Make the activity translucent.
Version 1.0.1 - 25 March 2010
Make compatible with Android 1.1 (previous versions unnecessarily required 1.5).
Version 1.0.0 - 18 March 2010
Add format and email client to shortcut.
Version 0.0.4 - 11 February 2010
Enable it to create shortcuts where the destination email can be specified.
Version 0.0.3 - 16 October 2009
Add SendLog version to email.
Version 0.0.2 - 22 June 2009
Add "top" output and Android version.
Version 0.0.1 - 04 June 2009
Initial version.

Go back to see my other Android apps

Please send all comments and suggestions to android@L6n.org.