Discover and read the best of Twitter Threads about #30daysoflogging

Most recents (1)

Logging in #Python is something I want to master. So, starting #30DaysOfLogging from tomorrow.

Time to go from Zero(almost) To Hero.
#Day1 Basics Of Logging

1. We need logging to tell us what's happening in our code
2. Python has an inbuilt logging module which can be imported
3. DEBUG, INFO, WARNING, ERROR & CRITICAL are the level of logging available.
4. WARNING is the default logging level
#100DaysOfCode Image
#Day2

The whole purpose of logging is to be able to write events to a file. This is how you can do it

If you are Python Version > 3.9 then you can use the logging.basicConfig

#100DaysOfCode #Python Image
Read 32 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!