I have a module, that is a wrapper class for C programs.
Each method has various inputs, but the outputs are typically the same, a file name.
class Wrapper(object):
def wrapper1(self, infile, outfile):
do_stuff
log.info('wrapper1:%s' %outfile)
I've already written 50 methods before I realized that I want this behaviour.
Plus, there's got to be an elegant way of adding a logger w/o adding that line to all methods.
Cheers