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