def print_and_log(text): print(text); logger.info(text) #--------------------------------------------------------------- def write_string_to_text_file(input_string, file_name, encode = ''):
def printW(text, write_log=False): print(f"\033[97m {text}\033[00m"); logger.info(text) if write_log else None def print_and_log(text): print(text); logger.info(text)
def printR(text, write_log=True): print(f"\033[91m {text}\033[00m"); logger.error(text)if write_log else None def printC(text, write_log=False): print(f"\033[96m {text}\033[00m"); logger.info(text) if write_log else None
def printC(text, write_log=False): print(f"\033[96m {text}\033[00m"); logger.info(text) if write_log else None def printB(text, write_log=False): print(f"\033[94m {text}\033[00m"); logger.info(text) if write_log else None
def printG(text, write_log=True): print(f"\033[92m {text}\033[00m"); logger.info(text) if write_log else None def printY(text, write_log=True): print(f"\033[93m {text}\033[00m"); logger.info(text) if write_log else None