Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
In the event you use Python’s logger
as follows:
import logging
logger = logging.getLogger()
logger.setLevel(logging.DEBUG) # or logging.INFO
Maybe you wish to get it to print to Customary Output (stdout
), then you are able to do the next:
import logging
logger = logging.getLogger()
# logger.setLevel(logging.INFO)
logger.setLevel(logging.DEBUG)
handler = logging.StreamHandler(sys.stdout)
handler.setLevel(logging.DEBUG)
formatter = logging.Formatter('%(asctime)s - %(identify)s - %(levelname)s - %(message)s')
handler.setFormatter(formatter)
logger.addHandler(handler)
This manner now you can log straight to the console as effectively:
logger.data('Some textual content will get logged right here')