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: logger #32

Merged
merged 6 commits into from
Jul 30, 2024
Merged

feat: logger #32

merged 6 commits into from
Jul 30, 2024

Conversation

0xkenj1
Copy link
Collaborator

@0xkenj1 0xkenj1 commented Jul 30, 2024

🤖 Linear

Closes ZKS-127

Description

  • Logger

Copy link

linear bot commented Jul 30, 2024

ZKS-127 Implement shared Logger

AC:

  • Logger implemented on shared module
  • nestjs-winston is used

@0xkenj1 0xkenj1 requested review from 0xnigir1 and 0xyaco July 30, 2024 00:10
0xyaco
0xyaco previously approved these changes Jul 30, 2024
winston.format.colorize(),
winston.format.printf(
({ timestamp, level, message, stack }: Record<string, string>) => {
return `${timestamp} ${level}: ${stack || message}`;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just in case, here stack == "" will cause message to be printed.

package.json Outdated
@@ -28,9 +28,11 @@
"@nestjs/platform-express": "10.0.0",
"@nestjs/swagger": "7.4.0",
"abitype": "1.0.5",
"nest-winston": "^1.9.7",
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove caret

Copy link
Collaborator

Choose a reason for hiding this comment

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

I was curious if pnpm supported this and it seems that running pnpm add -E adds the package without the caret!

pnpm add -E nest-winston

package.json Outdated
"reflect-metadata": "0.1.13",
"rxjs": "7.8.1",
"viem": "2.17.5"
"viem": "2.17.5",
"winston": "^3.13.1"
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove caret

@0xkenj1 0xkenj1 merged commit 4e255c9 into dev Jul 30, 2024
6 checks passed
@0xkenj1 0xkenj1 deleted the feat/logger branch July 30, 2024 15:32
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.

3 participants