def spam_test(): print('Spamming with random messages as fast as we can!!!') counter = 0 while True: arr = ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(135)) counter += 1 if counter % 13 == 0: fpylog.crit(arr) if counter % 11 == 0: fpylog.err(arr) if counter % 9 == 0: fpylog.warn(arr) if counter % 7 == 0: fpylog.info(arr) if counter % 5 == 0: fpylog.debug(arr) if counter > 1000000: counter = 0
def __init__(self): fpylog.crit('message from class')