def set_logging(cfg_obj):
log_status = cfg_obj['<STR_LIT>']['<STR_LIT>']<EOL>if log_status:<EOL><INDENT>logger.disabled = False<EOL><DEDENT>elif not log_status:<EOL><INDENT>logger.info(<EOL>'<STR_LIT>' %<EOL>(inspect.stack()[<NUM_LIT:0>][<NUM_LIT:3>], cfg_obj['<STR_LIT>']['<STR_LIT>'])<EOL>)<EOL>logger.disabled = True<EOL><DEDENT>return log_status<EOL>
Enable or disable logging per config object parameter