开发者

Android: Redirecting Log.x() calls to a file?

开发者 https://www.devze.com 2023-03-05 01:10 出处:网络
is it poss开发者_StackOverflowible to log messages sent through Log.x(...) [x € d, i etc.] to a file? Thanks for any hint!From the adb shell you can do logcat > some_file

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


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号