Python Forum
Logging /w several modules/libraries
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Logging /w several modules/libraries
#2
When I develop code, I do it in small steps, usually a method at a time, then make sure that the method works before moving on.
To do this, I will occasionally use a well placed print statement, but remove it once I am satisfied all is working as expected.

What is more valuable to me is to step through the method, checking all variable contents and program flow, step by step, using the debugger.

Too many print statements, or logger statements will make your code unreadable, or messy at best.
Reply


Messages In This Thread
Logging /w several modules/libraries - by Lou - Sep-08-2021, 07:38 AM
RE: Logging /w several modules/libraries - by Larz60+ - Sep-08-2021, 02:45 PM
RE: Logging /w several modules/libraries - by Lou - Sep-11-2021, 12:35 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  List of Modules/Libraries Installed by Default? rontarrant 2 1,121 Oct-14-2022, 05:18 PM
Last Post: rontarrant
Question Trouble installing modules/libraries and getting Notepad++ to show cyrillic letters Dragiev 6 2,475 Jul-24-2022, 12:55 PM
Last Post: Dragiev
  Modules issue, pip3 download modules only to pyhton3.5.2 not the latest 3.6.1 bmohanraj91 6 8,653 May-25-2017, 08:15 AM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020