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

feat: Support new log event levels (debug and fatal) #473

Merged
merged 3 commits into from
Sep 7, 2023

Conversation

tuanphamcybozu
Copy link
Contributor

Why

  • Support new log event levels: debug and fatal

What

  • Add more new log level to Logger and customize color follow the level

How to test

  • Usage: logger.debug("test message") and logger.fatal("test message")
  • pnpm test

Checklist

  • Read CONTRIBUTING.md
  • Updated documentation if it is required.
  • Added tests if it is required.
  • Passed pnpm lint and pnpm test on the root directory.

@tuanphamcybozu tuanphamcybozu requested a review from a team as a code owner September 7, 2023 05:24
@tuanphamcybozu tuanphamcybozu requested review from hung-cybo and removed request for a team September 7, 2023 05:24
Copy link
Member

@tasshi-me tasshi-me left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your PR!
I added some requests for changes.

src/utils/__tests__/log.test.ts Show resolved Hide resolved
src/utils/__tests__/log.test.ts Outdated Show resolved Hide resolved
src/utils/__tests__/log.test.ts Outdated Show resolved Hide resolved
src/utils/log.ts Show resolved Hide resolved
Copy link
Member

@tasshi-me tasshi-me left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@tasshi-me tasshi-me merged commit 33c4652 into main Sep 7, 2023
10 checks passed
@tasshi-me tasshi-me deleted the feat/support-new-logs-event-level branch September 7, 2023 09:18
This was referenced Sep 7, 2023
This was referenced Jan 17, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants