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.

Комментарии • 16

  • @retardoquasti7925
    @retardoquasti7925 2 года назад +15

    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

    • @tomekintech5748
      @tomekintech5748  2 года назад

      Thanks!

    • @Krono159
      @Krono159 Год назад

      @@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

  • @kataii
    @kataii Год назад +2

    Quite useful, straightforward forward and very practical video for logging, Thanks

  • @skyzane2735
    @skyzane2735 6 месяцев назад +1

    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?

  • @feugos
    @feugos 4 месяца назад +1

    Hi! Is it possible concatenate some custom log messages in the end of main log for each route?

  • @KelderPassos
    @KelderPassos 9 месяцев назад

    It was very useful for me. Thanks for your job.

  • @ashlok2003
    @ashlok2003 8 месяцев назад

    Thanks buddy for such nice explanation ❤

  • @sexyrican20m
    @sexyrican20m Год назад +3

    Great Info. Thank you....... but in the future slow it down just a notch....... had me dizzy towards the end.

  • @user-fo5rw7yq5c
    @user-fo5rw7yq5c 5 месяцев назад

    Useful

  • @ahndeux
    @ahndeux 8 месяцев назад

    I'll stick with the good old "console.log" function. Interesting, but just too much crap to log.

    • @clementadjei4396
      @clementadjei4396 8 месяцев назад

      these are necessary for when the application is deployed

    • @ahndeux
      @ahndeux 8 месяцев назад

      @@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.

    • @michaelcaxias
      @michaelcaxias 3 месяца назад

      @@ahndeux Yeah, of course, this is more useful when using Kibana or other logging UI

  • @edvzig
    @edvzig 5 месяцев назад

    You say "basically" too much. Love