Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,780,303 Members 42,757 Now Online
XDA Developers Android and Mobile Development Forum

[TOOL]Logcat Tool

Tip us?
 
FuzzyMeep Two
Old
(Last edited by FuzzyMeep Two; 3rd July 2014 at 06:52 PM.) Reason: updated
#1  
Senior Member - OP
Thanks Meter 205
Posts: 102
Join Date: Feb 2012
Location: Southern NH

 
DONATE TO ME
Talking [TOOL]Logcat Tool

I have made a tool to simplify Logcat creation for people. The creation of this tool was inspired, and guided, by the thread started HERE by paxChristos.


HUGE UPDATE
Version 4.0

Added the ability to "SUPER PARSE" Files, which separates files into folders by log level and creates a TXT file for each activity

EX.
.[OUTPUT FOLDER]-->
.....[DEBUG LEVEL FOLDER] --->
............... BACKUPMANAGER.TXT
............... SURFACFLNGER.TXT
................ETC...



Super parse DOES NOT Work with LONG format Logs.
SUPER PARSE is in its infancy I do expect errors, please let me know if you run into anything.





EDIT V3.6 DONE
Added ability to filter logcats by activity name. (logcat -s "FILTER")
Fixed Log Level Setting


EDIT V3.5 DONE

NOW PROPERLY PARSES "LONG" FORMAT LOGCATS.
Thank you to Senior Member jes0411 for pointing out the issues that lead me to create V3.4 and 3.5. If any of you have an issue please let me know. It could be hours before i get to it or weeks, but i will get to fixing it.


EDIT V3.4 DONE

Changed the way the date variable was handled to hopefully fix issues experienced by users of non-English versions of windows.

EDIT V3.3 DONE

modified the output to include the log level before the logcat as seen below;


ERROR LEVEL
 
Code:
"E/MotionRecognitionService(  902):   mReceiver.onReceive : ACTION_USER_PRESENT  :: UNLOCK SCREEN" 
"E/Watchdog(  902): @Sync 96" 
"E/Watchdog(  902): @Sync 97" 
"E/ActivityThread(22620): Activity com.google.android.music.ui.TrackContainerActivity has leaked IntentReceiver android.widget.ViewFlipper$1@4552e080 that was originally registered here. Are you missing a call to unregisterReceiver()?" 
"E/ActivityThread(22620): android.app.IntentReceiverLeaked: Activity com.google.android.music.ui.TrackContainerActivity has leaked IntentReceiver android.widget.ViewFlipper$1@4552e080 that was originally registered here. Are you missing a call to unregisterReceiver()?" 
"E/ActivityThread(22620): 	at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:814)" 
"E/ActivityThread(22620): 	at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:610)" 
"E/ActivityThread(22620): 	at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1774)" 
"E/ActivityThread(22620): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1754)" 
"E/ActivityThread(22620): 	at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:486)" 
"E/ActivityThread(22620): 	at android.widget.ViewFlipper.onAttachedToWindow(ViewFlipper.java:93)" 
"E/MP-Decision( 2125): DOWN cpu:1 core_idx:1 Ns:1.100000 Ts:190 rq:0.000000 seq:196.000000"
LOGCAT GENERATED BY FUZZYMEEP TWO'S LOGCAT TOOL

AS OPPOSED TO

 
Code:
"E/MotionRecognitionService(  902):   mReceiver.onReceive : ACTION_USER_PRESENT  :: UNLOCK SCREEN" 
"E/Watchdog(  902): @Sync 96" 
"E/Watchdog(  902): @Sync 97" 
"E/ActivityThread(22620): Activity com.google.android.music.ui.TrackContainerActivity has leaked IntentReceiver android.widget.ViewFlipper$1@4552e080 that was originally registered here. Are you missing a call to unregisterReceiver()?" 
"E/ActivityThread(22620): android.app.IntentReceiverLeaked: Activity com.google.android.music.ui.TrackContainerActivity has leaked IntentReceiver android.widget.ViewFlipper$1@4552e080 that was originally registered here. Are you missing a call to unregisterReceiver()?" 
"E/ActivityThread(22620): 	at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:814)" 
"E/ActivityThread(22620): 	at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:610)" 
"E/ActivityThread(22620): 	at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1774)" 
"E/ActivityThread(22620): 	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1754)" 
"E/ActivityThread(22620): 	at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:486)" 
"E/ActivityThread(22620): 	at android.widget.ViewFlipper.onAttachedToWindow(ViewFlipper.java:93)" 
"E/MP-Decision( 2125): DOWN cpu:1 core_idx:1 Ns:1.100000 Ts:190 rq:0.000000 seq:196.000000"
LOGCAT GENERATED BY FUZZYMEEP TWO'S LOGCAT TOOL







EDIT V 3.2 Finished
Google code won't allow any new uploads, so i will attach the new update here in a ZIP file.

Fixed ADB Location settings, some users were having trouble if they input the ADB folder with any quotation marks in the path name, it will now automatically remove quotation marks to ensure correct syntax.
Fixed issue with ADB Location setting not exiting to previous menu.
Fixed issue with Log Level setting not exiting to previous menu.
Capitalized some stuff
Added a feature that will automatically create the selected folder if no output folder exists and the user attempts to run a log.
Added a check when selecting an output folder that will ask if you want the folder created if it does not exist


NOW PARSES FILES

OUTPUTTING SEPREATE FILES:
(DEBUG).TXT
(ERROR).TXT
(INFO).TXT
(VERBOSE).TXT
(WARNING).TXT
ETC..



AS WELL AS A FULL LOGCAT

EXAMPLE OUTPUT "INFO" LEVEL FILE

 
Code:
"I/LocationManagerService( *495): request passive (pid 9909) 0 0"*
"I/LocationManagerService( *495): request passive (pid 3221) 60000 0"*
LOGCAT GENERATED BY FUZZYMEEP TWO'S LOGCAT TOOL







****OLD STUFF*****
 

EDIT V3.1 DONE
FIXED OPTIONS 7 & 8, URLS WERE MISSING A "?"
CHANGELOG EDITS
SAVES AND PARSES FILES IN TO DIFFERENT OUPUT FILES BASED ON LOG LEVEL (E , I , D , W , ETC)


EDIT V3 DONE
https://code.google.com/p/logcat-tool/downloads/list

added a logcat icon to exe
various bug fixes
addeed "HIDE" brackets (Thank you Szczepanik)


EDIT:
Many bug and typo fixes.

Now Saves Settings.

Easy XDA option adds [CODE] brackets for easy posting to XDA.

There are now key words you can enter to execute actions instead of just numbers ex. "LOG" to start logging or HELP for help

Automatically adds "/" to end of directories entered if forgotten.
Attached Files
File Type: zip LOGCATTOOL(4.0).zip - [Click for QR Code] (550.3 KB, 819 views)
The Following 45 Users Say Thank You to FuzzyMeep Two For This Useful Post: [ Click to Expand ]
 
marcopolo
Old
#2  
marcopolo's Avatar
Senior Member
Thanks Meter 78
Posts: 355
Join Date: Apr 2009
Quote:
Originally Posted by FuzzyMeep Two View Post
I have made a tool to simplify Logcat creation for people. The creation of this tool was inspired, and guided, by the thread started HERE by paxChristos.

LOGCAT TOOL by FuzzyMeep TWO

I made this in about a half hour, so if you fnd any issues let me know. I believe i worked out all functionality issues, and do plan on expanding functionality in the future. This is written in Batch, and compiled with QuickBFC.


https://code.google.com/p/logcat-tool/


Edit: source here.
Batch Source
Let me test it for you

Sent from my NexusHD2 using xda premium
The Following 2 Users Say Thank You to marcopolo For This Useful Post: [ Click to Expand ]
 
FuzzyMeep Two
Old
(Last edited by FuzzyMeep Two; 24th April 2013 at 12:41 PM.)
#3  
Senior Member - OP
Thanks Meter 205
Posts: 102
Join Date: Feb 2012
Location: Southern NH

 
DONATE TO ME
EDIT V3.1 DONE
FIXED OPTIONS 7 & 8, URLS WERE MISSING A "?"
CHANGELOG EDITS
SAVES AND PARSES FILES IN TO DIFFERENT OUPUT FILES BASED ON LOG LEVEL (E , I , D , W , ETC)










Quote:
Originally Posted by apurohit View Post
Let me test it for you

Sent from my NexusHD2 using xda premium
Have at it, click the link above, it should download. the only thing i think it is missing is search filters, but that will be added asap, or, if you're feeling generous (anyone) feel free to take the batch source and add to it.


Download page
PHONE:Samsung SGH i9505 T-MOBILE Galaxy S4 (4.4.2)
TABLET:Asus/Google Nexus 7 (4.4.4)
MINI-PC:UG802 (4.1.1)

Try my LOGCAT TOOL
Have a device with a broken screen? Recover your files with my RECOVERY TOOL
 
Shano56
Old
#4  
Shano56's Avatar
Senior Member
Thanks Meter 548
Posts: 1,382
Join Date: Oct 2011
Location: Seattle
you still working on this?
LG Nexus 5
 
A_U
Old
#5  
Recognized Contributor / Themer
Thanks Meter 4,567
Posts: 3,223
Join Date: Jun 2012
very useful...keep up the good work !
Samsung Galaxy Note 2 (GT-N7100)
Baseband : NG4
ROM : Dr. Ketan V9

 




My Facebook page | My XDA Contributions



Previous Devices -

Pandigital Supernova Tablet
Samsung Galaxy Ace
Samsung Galaxy Mini
 
CrisisCorE
Old
#6  
Senior Member
Thanks Meter 29
Posts: 160
Join Date: Jan 2011

 
DONATE TO ME
grr windows
 
meethere
Old
#7  
meethere's Avatar
Senior Member
Thanks Meter 103
Posts: 708
Join Date: Jan 2012
congrats for getting on homepage !
Get exposure, submit your biz to business web directory
India's Best Online Deals
The Following User Says Thank You to meethere For This Useful Post: [ Click to Expand ]
 
FuzzyMeep Two
Old
(Last edited by FuzzyMeep Two; 24th April 2013 at 12:42 PM.)
#8  
Senior Member - OP
Thanks Meter 205
Posts: 102
Join Date: Feb 2012
Location: Southern NH

 
DONATE TO ME
EDIT V3.1 DONE
FIXED OPTIONS 7 & 8, URLS WERE MISSING A "?"
CHANGELOG EDITS
SAVES AND PARSES FILES IN TO DIFFERENT OUPUT FILES BASED ON LOG LEVEL (E , I , D , W , ETC)


Quote:
Originally Posted by Shano56 View Post
you still working on this?
I haven't added anything in a while, but like i said, do intend to add filtering, i already started the framework in the file (variables, menus and such) it was juts giving me all kinds of sh*t so i backed off and fixed some other more pressing bugs. But i think i will hop back on it soon, and add filtering.. And, if you (anyone) have any suggestions, let me know.
PHONE:Samsung SGH i9505 T-MOBILE Galaxy S4 (4.4.2)
TABLET:Asus/Google Nexus 7 (4.4.4)
MINI-PC:UG802 (4.1.1)

Try my LOGCAT TOOL
Have a device with a broken screen? Recover your files with my RECOVERY TOOL
 
AxAtAx
Old
#9  
AxAtAx's Avatar
Senior Member
Thanks Meter 12,321
Posts: 10,498
Join Date: Mar 2011
Location: ViSiONViLLE

 
DONATE TO ME
Thank you, thank you. Good job, and works.

 
FuzzyMeep Two
Old
(Last edited by FuzzyMeep Two; 24th April 2013 at 12:41 PM.)
#10  
Senior Member - OP
Thanks Meter 205
Posts: 102
Join Date: Feb 2012
Location: Southern NH

 
DONATE TO ME
Default New and improved!!!

EDIT V3.1 DONE
FIXED OPTIONS 7 & 8, URLS WERE MISSING A "?"
CHANGELOG EDITS
SAVES AND PARSES FILES IN TO DIFFERENT OUPUT FILES BASED ON LOG LEVEL (E , I , D , W , ETC)







EDIT: BUG FIX UPDATE HERE

The last version removed a "*" on me so it had a great potential for closing itself, so i have repaired the problems.
Many bug and typo fixes.

Now Saves Settings.

Easy XDA option adds [CODE] brackets for easy posting to XDA.

There are now key words you can enter to execute actions instead of just numbers ex. "LOG" to start logging or HELP for help

Automatically adds "/" to end of directories entered if forgotten.
PHONE:Samsung SGH i9505 T-MOBILE Galaxy S4 (4.4.2)
TABLET:Asus/Google Nexus 7 (4.4.4)
MINI-PC:UG802 (4.1.1)

Try my LOGCAT TOOL
Have a device with a broken screen? Recover your files with my RECOVERY TOOL

The Following User Says Thank You to FuzzyMeep Two For This Useful Post: [ Click to Expand ]
Tags
batch, exe, logcat, tool
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes