log.py (292B)
1 import logging 2 import random 3 import sys 4 5 logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s', level=logging.INFO, stream = sys.stdout) 6 7 log_messages = ['running script return 0', 'not relevant information', 'INFO SAMPLE_TEXT'] 8 9 logging.info(random.choice(log_messages))