-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Getting log messages from Electron #376
Comments
Is the issue that there are no logs? or that onApp and friends are not even being called. Seeing how I can't seem to get logs or crash the app from these hooks I am assuming the latter... /cc @rauchg Edit: I'm using GA 0.6.0 |
@mattapperson Honestly I don't know if its even being called. |
Which log messages specifically? |
@olivierboucher I understand your frustration. In the mean time until we've figured out how to surface them properly you could try opening a Node.js write stream to a file and write there. |
@rauchg I think they could be sent over RPC and intercepted/echoed to the web console? What do you think? EDIT: Yes, |
That'd be really sweet. I wonder what the most elegant way of doing this is? Monkey-patching |
https://github.com/sfarthin/intercept-stdout/blob/master/intercept-stdout.js |
Do you guys want me to submit a pull request? Could probably do that over the weekend |
Would also like to see |
I like @olivierboucher's approach |
We definitely need this! |
Is this issue basically about getting |
You can clone the repo from master and set it up. Then once you lauch it you should see your logs in the terminal where the electron process is living(so the terminal where your run yarn run app) |
@zaynv for the plugin hyper-startup at least, they are doing this:
|
in v2 you can launch hyper in verbose mode to have these logs: |
Hi, I'm wondering if there is any way to access log messages from methods invoked by Electron.
Is there any config to activate? That would make plugin development much easier.
Thanks
The text was updated successfully, but these errors were encountered: