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

include filename and line number with log message #15

Open
dylang opened this issue Oct 7, 2013 · 0 comments
Open

include filename and line number with log message #15

dylang opened this issue Oct 7, 2013 · 0 comments

Comments

@dylang
Copy link

dylang commented Oct 7, 2013

I think it is important to note that when console.* is called, browsers* should show the line number and filename in the console mapped to filename and line where the call was made. When a source map is available, the original line number and file names should be displayed instead.

Moreover, I would like to propose introducing a method to enable the correct line number and filename to be displayed when calling console functions through a console abstraction library**.

For example: Angular provides a console.log abstraction called $log. Using $log results in every call displayed as if it originated in angular.min.js on line 79. This solution would enable the log messages to include the line number and filename of where $log.* was called instead.

  • Node does not currently show this information but it should make it available.
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