I recently using python, and the code I've been writing is starting to get large enough that I'm beginning to toggle on and off print statements, so I looked around to see what SO reccommended, and it every time the community votes that one should use logging, instead of print but discussions and documentation on how to configure it to be easy to use are confusing and hard to follow.
However, I'm finding the logger version of writing statments is more time consuming, and harder for a human to parse and just plain gross to look at:
print (‘First value is:‘, val1, ‘Second value is‘, val2)
vs
logger.info(‘value 1 is: %s , value 2 is: %s’, val1, val2)
Other than rolling my own debugging levels with something along the line of:
DEBUGGING = True
def debug (msg):
if DEBUGGING:
print (msg)
Is there something I can do to make logging statements simpler to read an write? or another package I should try?