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

Log to mac Console app #1047

Closed
reggi opened this issue Jan 22, 2015 · 7 comments
Closed

Log to mac Console app #1047

reggi opened this issue Jan 22, 2015 · 7 comments

Comments

@reggi
Copy link

reggi commented Jan 22, 2015

Is it possible for me to log to the Console app? console.log doesn't work! Similar to #339 about debugging.

@zcbenz
Copy link
Member

zcbenz commented Jan 22, 2015

Checkout https://github.com/atom/node-nslog.

@zcbenz zcbenz closed this as completed Jan 22, 2015
@reggi
Copy link
Author

reggi commented Jan 22, 2015

@zcbenz Thanks, do you know the log func, there's no doc?

@zcbenz
Copy link
Member

zcbenz commented Jan 22, 2015

It is a npm module nslog, you can find some usages in Atom editor.

@bwin
Copy link
Contributor

bwin commented Jan 22, 2015

see https://github.com/atom/node-nslog/blob/master/src/nslog.coffee

edit: Ok, if you don't know coffee: nslog exports a function which takes a variable count of parameters (there's a word for that). Just do nslog(blah, "blah", etc);

@reggi
Copy link
Author

reggi commented Jan 23, 2015

@bwin I used a converter and got to the same conclusion :)
Thanks!

@reggi
Copy link
Author

reggi commented Feb 28, 2015

@zcbenz Phantom.js has this onConsoleMessage wonder what your thoughts are for getting something like that into Atom shell?

@reggi
Copy link
Author

reggi commented Mar 1, 2015

jsdom also has something like this https://github.com/tmpvar/jsdom#capturing-console-output

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

3 participants