<filename>Standard Library/logging/1. Real Python/02_formatting_the_output.py<gh_stars>1-10
import logging
# %(asctime)s adds the time of creation of the LogRecord.
logging.basicConfig(
    format='%(asctime)s - %(process)d - %(levelname)s - %(message)s',
    datefmt='%d-%b-%y %H:%M:%S')
NAME = "<NAME>"
logging.warning(f"{NAME} logged out.")

<filename>Standard Library/logging/1. Real Python/02_formatting_the_output.py<gh_stars>1-10
import logging
# %(asctime)s adds the time of creation of the LogRecord.
logging.basicConfig(
    format='%(asctime)s - %(process)d - %(levelname)s - %(message)s',
    datefmt='%d-%b-%y %H:%M:%S')
NAME = "<NAME>"
logging.warning(f"{NAME} logged out.")

# %(asctime)s adds the time of creation of the LogRecord.