import logging import sys logging.basicConfig(stream=sys.stderr, level=logging.INFO) LOGGER = logging.getLogger("XPost")