Exemple #1
0
def print_and_log(text): print(text); logger.info(text)

#---------------------------------------------------------------
def write_string_to_text_file(input_string, file_name, encode = ''):
Exemple #2
0
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)
Exemple #3
0
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 
Exemple #4
0
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 
Exemple #5
0
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