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

Format to print an object at infinite depth? #316

Closed
olalonde opened this issue Oct 27, 2016 · 2 comments
Closed

Format to print an object at infinite depth? #316

olalonde opened this issue Oct 27, 2016 · 2 comments
Labels
has-pr This issue has an accompanying pull request

Comments

@olalonde
Copy link

Is there a format that will print a given object without keys being equal [Object] (e.g. that doesn't care about depth?). I tried debug('%o', obj) but that only will print up to a certain depth.

@thebigredgeek thebigredgeek added the has-pr This issue has an accompanying pull request label Nov 15, 2016
@joniba
Copy link

joniba commented Apr 29, 2019

IMO 327 doesn't resolve this issue. What if I want to manage inspection depth for a specific debug log or namespace? Environment variables will change formatting for all logs in all namespaces.

@Qix-
Copy link
Member

Qix- commented Apr 29, 2019

@joniba That's such an edge case I'd worry about polluting the API. This should be achievable with a custom logger though. Feel free to chime in on #582 #556 about this 🙂


BTW @joniba you can just type # and github will automatically link it. You don't need to manually make a markdown link :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has-pr This issue has an accompanying pull request
Development

No branches or pull requests

4 participants