Python Logging Made Easy

Поделиться
HTML-код
  • Опубликовано: 14 дек 2024

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

  • @BrannenTaylor
    @BrannenTaylor 3 года назад +5

    Thanks for the video. I found it helpful. One note - the sound seems to shift around - like your microphone was moving, or loose?

  • @DeepakGonge
    @DeepakGonge 3 года назад +1

    Thanks for great tutorial..Please guide, how can we set different color for Time and Date only shown logging console.?

    • @DevOpsJourney
      @DevOpsJourney  3 года назад

      This might be helpfull: ruclips.net/video/JrGFQp9njas/видео.html

  • @TheSumitBanik
    @TheSumitBanik 4 года назад +2

    That's an awesome video. Could you please me out how to print colored logging messages on the console?
    Like Red-colored message for Critical/Error Log

    • @TheSumitBanik
      @TheSumitBanik 4 года назад +1

      Thank You. I figured it out, used the coloroma package :)

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

    I want to open a file say python.txt and want to create a log file say logpy.log for the python.txt so as to record what time the python.txt was opend , closed , if the file crashed error like all the data should be inside the logpy.log file , how to write it, please provide an example like this.

  • @0x007A
    @0x007A 3 года назад +1

    I was wondering how to efficiently send log messages from a containeried Python application to the logging feature of Docker. Already using the logging/logger library for Python so the solution only requires a small change to redirect the output to STDOUT instead of a named file. Thanks.

    • @DevOpsJourney
      @DevOpsJourney  3 года назад

      Hey Gregory, did you find a solution to your problem?

    • @0x007A
      @0x007A 3 года назад

      @@DevOpsJourney yes, and it was relatively easy thanks to a feature in Python's core logging library. Not sure how I overlooked this feature of a library that I was already using for the project.

  • @Manjeet_impressico
    @Manjeet_impressico Год назад +1

    thanks man, well explained!!

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

    How to create external log files to see which test cases passed and which failed and share the report with a boss?

  • @romanmelon5845
    @romanmelon5845 3 года назад +3

    Thank you guy! very useful and helpful tutorial

  • @DevOpsJourney
    @DevOpsJourney  4 года назад

    Audio gets better at 0:26

  • @evertigo
    @evertigo Год назад +1

    More efficient f-strings are here for a while, even 2 years ago. Why still $s?

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

      I use both, but prefer f-strings like you mentioned

  • @choleralul
    @choleralul 2 года назад +4

    the audio got me drunk

  • @JainmiahSk
    @JainmiahSk 3 года назад +1

    How to know where to use what level?

    • @DevOpsJourney
      @DevOpsJourney  3 года назад +1

      It's up to you! If if think the message is an error or critical, set it to that. If you think it's just informational then set it to info. Hope this helped

    • @JainmiahSk
      @JainmiahSk 3 года назад

      @@DevOpsJourney along with logs what others are required for a project that must included.

    • @JainmiahSk
      @JainmiahSk 3 года назад

      @@DevOpsJourney Thanks for the fast reply. ❤️ The video.

  • @ДмитрийГрибанов-ь8э
    @ДмитрийГрибанов-ь8э 3 года назад +1

    thanks a million !!!

  • @jesuisravi
    @jesuisravi 3 года назад

    tis is a good video that is spoiled by the coding being almost impossible to see. Please, videographers, MAGNIFY the coding. It's the difference between doing a great job and just wasting your precious time.

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

    great and simple!

  • @smartassj
    @smartassj 2 года назад +1

    Bro, great explanation but the audio completely ruined it.

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

      Sorry man! Made this video when I was new to recording. Improved my setup since then. Thank you so much for the feedback.

  • @mo1tard743
    @mo1tard743 Год назад +1

    too small to see without a magnifying glass.

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

    Content was fine and done well, but the shift in sound removes your professionalism. It turned a ten star video to a five.

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

      Thanks for the honest feedback. I really needed to improve my audio back when I started recording. My most recent videos should have good audio.
      Thanks again for watching and your feedback!