No I don't think is logs on a worker thread in Express by default. Although the video doesn't go through using the Pino Express specific plugin github.com/pinojs/express-pino-logger
This is a good question. If you're using AWS or something you get that automatically with cloudwatch but locally you might need something like this github.com/pinojs/pino-tee
@@richardbray Hi Richard, Appreciated your help to me, thank you !!. however i have tried it and it did not behave correctly. i have created info.log and error.log, and tried it. The error log is go to error.log which is correct. however, the text for error.log is at info.log as well. Technically, the logs for info.log has twice, the one for error and the one for info.
I installed it long time ago, I couldn't get most of it, due to the complexity of the documentation. thank you for simpyfiying it. I have a question Can we log info about the file name, line?
Thanks for your compliments 😊 It's a good question and not something I've looked into before. I haven't seen it in others loggers I've used so I don't know how possible it is but I'm honestly not sure 🤷
Loved this! Straight to the point and very helpful. Thank you!
Thanks for a clear and concise demo.
really simply explained mate...thank you😊
That is super helpful! Thanks for the video!
Thanks, glad you found it helpful 👍
Thank you very much, a very helpfull "Getting started"!
You explained it really simple, thanks!
Thanks. I'm glad you liked my explanation.
The documentation seems too complicated to understand, this video helped me a lot, thankyou!
Aww that's very kind of you. Thanks :)
Really helped me , Thanks!
Thank you for this.
How did you get terminal intellisense at 2:47 ?
That's a vscode extension called Error Lens
Thanks for this. Helped a lot.
Nice, I'm glad you found it helpful
thank you so much
Thanks! Good video. Is there something that lets me browse Pino created logs from a browser? -Frank
Not to my knowledge. If you're using AWS you can do that through CloudWatch but this isn't an Pino feature.
When we use Pino with Fastify, logging is delegated to worker threads. Does it also work like this if we use Pino with Express?
No I don't think is logs on a worker thread in Express by default. Although the video doesn't go through using the Pino Express specific plugin github.com/pinojs/express-pino-logger
how to log both on nodejs console and on text file ?
This is a good question. If you're using AWS or something you get that automatically with cloudwatch but locally you might need something like this github.com/pinojs/pino-tee
@@richardbray Hi Richard, Appreciated your help to me, thank you !!. however i have tried it and it did not behave correctly.
i have created info.log and error.log, and tried it.
The error log is go to error.log which is correct. however, the text for error.log is at info.log as well.
Technically, the logs for info.log has twice, the one for error and the one for info.
In a nutshell, here's the example:
error.log -> TEST error
info.log -> TEST error TEST info
I installed it long time ago, I couldn't get most of it, due to the complexity of the documentation. thank you for simpyfiying it.
I have a question Can we log info about the file name, line?
Thanks for your compliments 😊
It's a good question and not something I've looked into before. I haven't seen it in others loggers I've used so I don't know how possible it is but I'm honestly not sure 🤷
Thank you
Thanks a lot !
What theme are you using with code ?
Cobalt 2 by Wes Bos
marketplace.visualstudio.com/items?itemName=wesbos.theme-cobalt2
I love your theme so much, can i have its name please?
I think it's Cobalt2
@@richardbray thanks for the theme
good stuff
bro u forgot debug
lol true