R
Railway•13mo ago
ade

NestJS Logging

Hi, thanks for making such a good and easy to use product, I love it!. Im having a little trouble seeing any logs in my app after the initial startup logs. some help would be greatly appreciated
10 Replies
Percy
Percy•13mo ago
Project ID: 8059b46b-5bdb-488c-b3c0-efafad9c2917
ade
ade•13mo ago
8059b46b-5bdb-488c-b3c0-efafad9c2917 just to confirm the initial logs work, but logs that I have in services or resolvers don't
Brody
Brody•13mo ago
are you using any kind of logging framework?
ade
ade•13mo ago
winston but even when i was using the default logger, logs still werent coming through
Brody
Brody•13mo ago
ah thought so, I've seen people have trouble with Winston, make sure you are logging to stdout/stderr without any kind of buffering
ade
ade•13mo ago
what framework would you recommend ?
Brody
Brody•13mo ago
console.log() and console.error()
ade
ade•13mo ago
but i have a default stdout in the main.ts file that logs successfully, but anywhere else it doesnt just to double check i see the application logs in the deploy logs in the observability tab right ?
Brody
Brody•13mo ago
in either the deployment logs or observability tab, yes try this
ade
ade•13mo ago
okay cool okay will do redeploying now thanks for the help 🙂
Want results from more Discord servers?
Add your server