Logging in Express and NodeJs - Winston library introduction
HTML-код
- Опубликовано: 10 сен 2024
- In this video I'll show you why you should not use a console.log in your project but you should use a loggin library like Winston instead.
Video where we implemented a REST API in Express • Build a REST API step ...
Github github.com/Tom...
This is a reupload of a previous video that I had to remove due to some technical errors.
00:00 - 2:25: Why to use Winston
2:25 - 7:30: Setup Winston
7:30 - 9:40: Format Outputs
9:40 - 13:30: Warning and Error Logging, Logging to File
13:30 - 18:00: Logging to MongoDB
18:00 - 22:50: Logging internal Application Errors
22:50 - 25:35: Custom format Outputs
25:35 - 30:36: Custom Log-Messages for different Levels
30:36 - 31:42: End
Very good work :) Thanks
Thanks!
@@tomekintech5748 how do i export to a file w/o using express? i'm trying to implement winston on a discord bot but i can't get it to work
Quite useful, straightforward forward and very practical video for logging, Thanks
is that rest extension secure and safe? I’m afraid that they might read the date we’ve been sending, or is it only used for testing?
Hi! Is it possible concatenate some custom log messages in the end of main log for each route?
It was very useful for me. Thanks for your job.
Thanks buddy for such nice explanation ❤
Great Info. Thank you....... but in the future slow it down just a notch....... had me dizzy towards the end.
Useful
I'll stick with the good old "console.log" function. Interesting, but just too much crap to log.
these are necessary for when the application is deployed
@@clementadjei4396 True, but for smaller projects, its not needed. Now you need another system to manage the log files. It's not even human readable without the ability to parse these log files.
@@ahndeux Yeah, of course, this is more useful when using Kibana or other logging UI
You say "basically" too much. Love