Logging
Sample
import logging logging.basicConfig(level=logging.DEBUG)
import logging import traceback logging.basicConfig(filename=logfile, level=logging.DEBUG, format="[%(asctime)s] pid=%(process)d:%(levelname)s:%(name)s:%(message)s") logging.getLogger().addHandler(logging.StreamHandler()) logging.error(traceback.format_exc())
References
Acknowledgments
Daiphys is a professional-service company for research and development of leading-edge technologies in physics and engineering.
Get started accelerating your business through our deep expertise in R&D with AI, quantum computing, and space development; please get in touch with Daiphys today!
Daiphys Technologies LLC - https://www.daiphys.com/