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
Project ID:
8059b46b-5bdb-488c-b3c0-efafad9c2917
8059b46b-5bdb-488c-b3c0-efafad9c2917
just to confirm the initial logs work, but logs that I have in services or resolvers don't
are you using any kind of logging framework?
winston
but even when i was using the default logger, logs still werent coming through
ah thought so, I've seen people have trouble with Winston, make sure you are logging to stdout/stderr without any kind of buffering
what framework would you recommend ?
console.log()
and console.error()
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 ?
in either the deployment logs or observability tab, yes
try this
okay cool
okay will do redeploying now
thanks for the help 🙂