Skip to content
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

Display log in standard output when running web target. #52

Open
jeremyfa opened this issue Jun 28, 2015 · 0 comments
Open

Display log in standard output when running web target. #52

jeremyfa opened this issue Jun 28, 2015 · 0 comments

Comments

@jeremyfa
Copy link
Member

Right now, we always have to manually open the developer console to display logs. It would be nice if the logs just show up on the standard output, like what happens with c++ target.

I see two ways of doing that:

  1. By letting the client send its log to the node server that launched the app, but it would work only until the server timeouts, and it would only be relevant when running the app from flow command line, not for production apps (well, we may not want those logs in production apps anyway).
  2. By implementing remote debugging protocols provided by the different browsers, but this would probably require more work, and browser specific implementations (I have no idea if the remote debugging protocols are similar between chrome and safari for example).

These are just some ideas. Maybe there would be a better way of addressing this, or a good reason for not doing it !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant