-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: logger #32
Conversation
winston.format.colorize(), | ||
winston.format.printf( | ||
({ timestamp, level, message, stack }: Record<string, string>) => { | ||
return `${timestamp} ${level}: ${stack || message}`; |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove caret
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove caret
🤖 Linear
Closes ZKS-127
Description