コード例 #1
0
#

output_file_path = args.out.strip()

# endregion

# ----------------------------------
# region Global Config

# endregion

# ----------------------------------------------------------------
# region Set Logger
#

setup_logging(logging_level=logging.INFO)
# Logger Name
logger_name = 'neo_rna.script'
logger = logging.getLogger(logger_name)

# endregion

# ----------------------------------
# region Prep

cwd = os.getcwd()
if not os.path.isabs(output_file_path):
    output_file_path = os.path.join(cwd, output_file_path)

# endregion
コード例 #2
0
def get_logger(logger_name: str, logging_level=logging.INFO):
    setup_logging(logging_level=logging_level)
    #
    return logging.getLogger(logger_name)