[SOLVED] logcat just for android debug app?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
alberto_lara
Party member
Posts: 372
Joined: Wed Oct 30, 2013 8:59 pm

[SOLVED] logcat just for android debug app?

Post by alberto_lara »

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.
User avatar
Positive07
Party member
Posts: 1014
Joined: Sun Aug 12, 2012 4:34 pm
Location: Argentina

Re: logcat just for android debug app?

Post by Positive07 »

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)
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: logcat just for android debug app?

Post by bartbes »

I think you can filter by package name, I'm fairly sure everything is logged from the org.love2d.android package.
User avatar
alberto_lara
Party member
Posts: 372
Joined: Wed Oct 30, 2013 8:59 pm

Re: logcat just for android debug app?

Post by alberto_lara »

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):

Image

I assume the tag I should use is "LOVE", something like this:

Code: Select all

adb logcat LOVE:I *:S
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)
bobbyjones
Party member
Posts: 730
Joined: Sat Apr 26, 2014 7:46 pm

Re: logcat just for android debug app?

Post by bobbyjones »

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.
User avatar
master both
Party member
Posts: 262
Joined: Tue Nov 08, 2011 12:39 am
Location: Chile

Re: logcat just for android debug app?

Post by master both »

If it help anyone, I just use "adb logcat -s SDL/APP" and it does the job well enough.
User avatar
alberto_lara
Party member
Posts: 372
Joined: Wed Oct 30, 2013 8:59 pm

Re: logcat just for android debug app?

Post by alberto_lara »

bobbyjones 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.
I tried

Code: Select all

adb logcat -s SDL:D *:S
but I don't get any output, just this one:

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!
This worked as expected:

Code: Select all

adb logcat -s SDL/APP
thanks!
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 23 guests