jeudi 14 juillet 2016

no log file produced


I'm new to logging in Python and have tried to build a basic logger that writes to a file. The problem I have is that the file is not created, yet there are not any errors thrown. Any ideas?

Using Spyder IDE in Anaconda (in case that is applicable)

Code:

import pandas as pd
import logging

format = "%(asctime)s %(message)s"
logging.basicConfig(format=format, level=logging.DEBUG, filename='H://logfile.log')

now = pd.datetime.now()
logging.info("Time Created")

Aucun commentaire:

Enregistrer un commentaire