Python Forum
is there any way to hid print()
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
is there any way to hid print()
#1
I have a huge code that links with many functions. For debug purposes, I need to have alot
 print() 
in many of my functions. But it makes many of my functions look complicated. Is there any way to have a separate function/script that I can handle all print(), and I can call this function whenever I need to print() contents in all other functions, so that I don't need to write
 print() 
in all current functions and make that look clear when reading it.
PS: it seems to me 'logging' may not be the choice, because I still need to write it in all independent function and that results in the same way as using print() method. But I don't know all features in logging, so if there is a way logging can help, I appreciate for advice. Thank
Reply


Messages In This Thread
is there any way to hid print() - by Kai - Apr-12-2020, 03:20 AM
RE: is there any way to hid print() - by bowlofred - Apr-12-2020, 06:23 AM

Forum Jump:

User Panel Messages

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