R
Railway•14mo 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•14mo ago
Project ID: 8059b46b-5bdb-488c-b3c0-efafad9c2917
ade
adeOP•14mo 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•14mo ago
are you using any kind of logging framework?
ade
adeOP•14mo ago
winston but even when i was using the default logger, logs still werent coming through
Brody
Brody•14mo 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
adeOP•14mo ago
what framework would you recommend ?
Brody
Brody•14mo ago
console.log() and console.error()
ade
adeOP•14mo 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•14mo ago
in either the deployment logs or observability tab, yes try this
ade
adeOP•14mo ago
okay cool okay will do redeploying now thanks for the help 🙂
Want results from more Discord servers?
Add your server