def setup_log_file(self, log_file_name, log_level=None):
log_file_path = os.path.join(self.DIR_CURR, "<STR_LIT:..>", "<STR_LIT>", log_file_name)<EOL>if log_level==None:<EOL><INDENT>log_level = logging.DEBUG <EOL><DEDENT>logging.basicConfig(level=log_level,<EOL>filename=log_file_path,<EOL>filemode="<STR_LIT:w>")<EOL>
https://fangpenlin.com/posts/2012/08/26/good-logging-practice-in-python/

# LOGGER LEVELS
DEBUG                               # Detailed information
INFO                                # Confirm things are working as expected
WARNING                             # Indication something unexpected has happened
ERROR                               # Error occurs
CRITICAL                            # Program may not be able to run