[SOLVED] logcat just for android debug app?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- alberto_lara
- Party member
- Posts: 372
- Joined: Wed Oct 30, 2013 8:59 pm
[SOLVED] logcat just for android debug app?
Hi, I'm testing an application running in Martin's android apk for löve, what I want to do is get the output just from this app using logcat (from print lua calls). I understand the right way is to use a tag, like here but I'm not sure which tag should I use (or if that even applies for this case). Thanks in advance.
Last edited by alberto_lara on Sat Jan 21, 2017 5:54 pm, edited 1 time in total.
- Positive07
- Party member
- Posts: 1014
- Joined: Sun Aug 12, 2012 4:34 pm
- Location: Argentina
Re: logcat just for android debug app?
The printed string starts with [LOVE2D], but I don't think there is any kind of filter set up sorry... Maybe you can change the code and make a PR! It would be helpful
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: logcat just for android debug app?
I think you can filter by package name, I'm fairly sure everything is logged from the org.love2d.android package.
- alberto_lara
- Party member
- Posts: 372
- Joined: Wed Oct 30, 2013 8:59 pm
Re: logcat just for android debug app?
That was the first think I though as well but was unable to make it work (or maybe I'm doing something wrong). I read the docs here but I'm still confused, judging for what it's in the non-filtered logcat (the 1st line is a print() call):
I assume the tag I should use is "LOVE", something like this:
but that didn't work either.
I tried the package way but same results (I'm still thinking I'm doing something wrong)
EDIT: As a workaround I'm using this answer, it seems to work (I would prefer the "official" way though)
I assume the tag I should use is "LOVE", something like this:
Code: Select all
adb logcat LOVE:I *:S
I tried the package way but same results (I'm still thinking I'm doing something wrong)
EDIT: As a workaround I'm using this answer, it seems to work (I would prefer the "official" way though)
-
- Party member
- Posts: 730
- Joined: Sat Apr 26, 2014 7:46 pm
Re: logcat just for android debug app?
I think I filtered by SDL/APP and SDL I think I used SDL:D *:S but I'm not sure I did it the other day.
Edit: I essentially filtered by the activity I guess.
Edit: I essentially filtered by the activity I guess.
- master both
- Party member
- Posts: 262
- Joined: Tue Nov 08, 2011 12:39 am
- Location: Chile
Re: logcat just for android debug app?
If it help anyone, I just use "adb logcat -s SDL/APP" and it does the job well enough.
- alberto_lara
- Party member
- Posts: 372
- Joined: Wed Oct 30, 2013 8:59 pm
Re: logcat just for android debug app?
I triedbobbyjones wrote:I think I filtered by SDL/APP and SDL I think I used SDL:D *:S but I'm not sure I did it the other day.
Edit: I essentially filtered by the activity I guess.
Code: Select all
adb logcat -s SDL:D *:S
Code: Select all
[g@pc susse_mobile]$ adb logcat -s SDL:D *:S
--------- beginning of main
--------- beginning of system
I/SDL (24148): SDL_Android_Init()
I/SDL (24148): SDL_Android_Init() finished!
Code: Select all
adb logcat -s SDL/APP
Who is online
Users browsing this forum: Google [Bot] and 23 guests