-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is it possible? #51
Comments
Hi @Bayramito , Do you mean send json log printed by javascript console.log() from browser to jog, or a totally-console.log-unrelated one which just send log from browser? Currently jog doesn't support that. Here's what I'm thinking about it:
Could you describe more detailed requirement? I will check the possibility to include it into incoming v2.0. |
I mean, Lets say i have a react project and i run it by npm start right? And lets say i fetch data from a source and console.log(response) to check whats inside the data object. So in iterm2 or a regular console application you are seeing it as a normal string right? I wonder is it possible to display it as a object structute with clickable handlers directly inside the console app. Lets think you have a object printed out on your console app, and you can click to keys to expand them to see whats inside. And thats being realt rime. I mean you dont need to type jog x.log etc |
Where the log is generated is still ambigious for me: as a react app, I think the console.log() writes to browser console, but you mentioned 'npm start' (a node.js backend app?) and 'iterm' which log is outputted to terminal instead of browser console. Which one? |
You see this log here ? so its not readable at all as you can see. what im doing is, i copy that and go to https://jsonformatter.curiousconcept.com/ to make it much more readable like so: as you can see the result is much more readable, i can also narrow the objects as well as i can expand them by + icons. can this be done in my console? |
The pretty print could be doable by JSON.stringify(), for ex. https://stackoverflow.com/questions/4810841/pretty-print-json-using-javascript The 'click-and-expand' is doable in terminal, but it sounds quite heavy for a terminal app. I'm working on jog 2.0 which has a web ui to view json log in real-time. |
sounds interesting... its actually very powerful one but suddenly crashes when i restart my app |
Not yet have something testable, it's in early stage. BTW, do you know any UI library that I can reuse it for click-and-expand json viewer? |
Nope, but found something like this https://github.com/ddopson/underscore-cli actually there are a lot of libs like this, but they work with files only. i mean you can use them for logging a specific file not on the fly while coding realtime |
Is it possible to use this on a react project where logs are realtime
The text was updated successfully, but these errors were encountered: