>./ Alex Tech Blog / logging in Python

logging in Python

#python

Snippet how to log data in Python

1
2
3
4
5
6
7
import logging

logging.basicConfig(
    format='%(asctime)s - %(levelname)s - %(module)s - %(message)s',
    level=logging.INFO,
    filename='log.log'
)
#aws #cheat sheet #codecommit #esri #github #honeycode #javascript #jupyter #linux #machine learning #pandas #php #python #salesforce #ssh