-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Feature Request: Print objects to console without expanding them. #263
Comments
@avin-kavish you can do this pretty easily by overwriting the default behavior of the logger.
And if you don't want this to be the default behavior you can create a Sub-Logger
Then use it like this
It's a pretty simple fix, but I still think this should be a standard feature so others won't have to go to the trouble. It'd be nice to have a |
I am always happy to merge MRs :-) |
So when we normally log to console using
console.log
, browsers print the objects in a contracted format, and you can optionally click to expand to inspect the properties of the object.Can I get the same behavior with
tslog
? I scanned through the documentation but couldn't figure out whether that was 100% possible.The text was updated successfully, but these errors were encountered: