1

is it possible to log messages sent through Log.x(...) [x € d, i etc.] to a file? Thanks for any hint!

stefan.at.kotlin
  • 15,347
  • 38
  • 147
  • 270
  • possible duplicate of [How do you save an Android application log to a file on a physical device?](http://stackoverflow.com/questions/5101691/how-do-you-save-an-android-application-log-to-a-file-on-a-physical-device) – Daniel DiPaolo May 11 '11 at 20:50

2 Answers2

1

From the adb shell you can do logcat > some_file

You can probably also issue this shell command from an application which has the necessary permission to read logs

Chris Stratton
  • 39,853
  • 6
  • 84
  • 117
0

open the cmd prompt

set up the path of our platform tools in android sdk

eg:

c:\android-sdk\platformtools > adb logcat > log.txt

This is the command to store the log in a file:

adb logcat > log.txt

NeverHopeless
  • 11,077
  • 4
  • 35
  • 56
prathi
  • 1