Monday, June 27, 2011

Re: [android-developers] Log file on device

On Tue, Jun 28, 2011 at 11:26 AM, EdwardComb <dzn.aiedyz@gmail.com> wrote:
> Hi all.
>
> Actually, I created an application with Log.e, whenever it got error
> in certain methods and it will collect all the errors.
> But, how do I write the Log.e and read it back on my Android device?
> I know from the SDK, we can use Logcat but I want to test the
> functionality on Android device with custom setup.
>
> I heard that we can write and dump our log files in SDcard..
> How to do it?
> Any idea?

Execute logcat on the device and redirect as necessary.
Something like:

# logcat -d > /mnt/sdcard/log.txt

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment