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

Support full log contract from plain js Console in metalog.Console #205

Open
georgolden opened this issue Aug 11, 2022 · 0 comments
Open

Comments

@georgolden
Copy link
Member

Problem

Console interface not fully implements js Console interface.

debug, error, log, info, warn contracts are different from js Console contracts.
https://developer.mozilla.org/en-US/docs/Web/API/console/log

It must handle 2 scenarios: multiple objects to log, or string as a first argument and objects to replace substitution parameters as rest.

Solution

For those methods - implement handling different arguments based from first argument type. It can be an object - rest are objects or a string - rest are objects to replace substitution parameters.

@tshemsedinov What are your thoughts about this?

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

No branches or pull requests

1 participant