I have the following code in a module that I want to call from any other application module.
The code I have also displays the debug message on the console when I invoke it like this:
def main():
logger = custom_logger(' test1', 'log', 'test.log', False)
logger.debug('l og to file only')
Not sure how to turn off the console.
Any thoughts?
Thanks.
custom_logger(l ogdir,...