yanoushek / logcat Goto Github PK
View Code? Open in Web Editor NEWA simple adb logcat viewer for Mac OS X written in Objective-C
A simple adb logcat viewer for Mac OS X written in Objective-C
Yanoushek,
I've gotten a little addicted to this project. I hope you don't mind but I am going to try and implement the features on the roadmap. My first step will be to refactor adb out of the AppDelegate class. I will do this by creating a LogcatDatasource class and trying to move filtering, search, adb etc into it. I think this will make things a lot easier in the long run. Maybe I will pull the to tableviews into their own class too.?.
Here is the list of items on the roadmap and a few comments about them:
I will start by allowing user to select from a list of devices (if multiple connected) and view the log for the selected device. How did you envision this to work? I foresee having one window per device log (maybe I can hack together a demo of this after the refactor). Or being able to select a threadID and open its view into another window. This way you could look at two threads side by side.
I added ability to add a filter by right clicking on the row/column. In my opinion this is better than auto generating filters. I do think it would be useful to be able to import and export filters. If we start using predicates this will probably need to get a lot smarter.
I've worked with NSPredicate a few times. As I do the refactor I will consider changing to NSPredicate for the filtering
No plan to solve this during this refactor
Is this still a plan since ADB is packaged with the app? I could see an argument for preferring the users ADB and if it can't be found than use the pre packaged one.
I think it will be a lot more efficient if we use "adb logcat -v threadtime" and parse with NSScanner. I am going to test this out and see what the most efficient way to do this is. I wan to optimize the initial launch because it take several seconds before we get through the cached log.
where is app/setup for this application. I am new to mac and don't have xcode installed.
Please can you provide a build so I can install it.
I am on slow internet connection and don't want to install xcode (it is huge).
Line 18: self.tfAdbPath.stringValue = [[NSUserDefaults standardUserDefaults] objectForKey:PREFS_ADB_PATH];
if [[NSUserDefaults standardUserDefaults] objectForKey:PREFS_ADB_PATH] returns nil, application crushes.
My workaround:
if([[NSUserDefaults standardUserDefaults] objectForKey:PREFS_ADB_PATH] != nil) {
self.tfAdbPath.stringValue = [[NSUserDefaults standardUserDefaults] objectForKey:PREFS_ADB_PATH];
}
Hi there,
would be good if you can compile it and release it as .app, so users without xcode can use it too.
In order for individuals to use or modify this project legally, it must have a license.
Relevant links:
Yanoushek,
Sorry this is not really and issues. I just wanted to say thank you for sharing LogCat. Many of us are using it every single day and rely on it very heavily to get their job done faster and easier.
Do you still use it?
-- Yepher
Njhyhh
Ok, this might be obvious... but I cannot find a way to link the application to my logcat's output. How do you do this?
Update: AH, I see I do not need to actually give it the location of my android sdk. In fact, I just needed to unplug and replug my device. Thanks for this tool!
I updated my ADK. Now when I launch LogCat that has ADB pre-packaged ADB crashes.
I think the user has to be able to select their $ANDROID_HOME/platform_tool adb for this to be stable.
Or maybe when the app runs the first time the user should be given to use the built in ADB or select a custom adb version.
error: more than one device and emulator
add some choosing dialog or something
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.