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

[Logging] use different console.logs on different usage #91

Open
ryuina opened this issue Aug 13, 2023 · 0 comments
Open

[Logging] use different console.logs on different usage #91

ryuina opened this issue Aug 13, 2023 · 0 comments
Assignees

Comments

@ryuina
Copy link
Collaborator

ryuina commented Aug 13, 2023

.catch((err) => console.log(err));

In javascript there are many types of console.log

  • console.log
  • console.debug
  • console.warn
  • console.error

https://developer.mozilla.org/ko/docs/Web/API/console#%EB%A9%94%EC%84%9C%EB%93%9C

And if you use each methods on the usage. So in this case, you can log error log with console.error then it will be printed with console with "error" color

@ryuina ryuina self-assigned this Aug 13, 2023
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