From: Neil Smith Date: Tue, 8 Nov 2016 11:00:23 +0000 (+0000) Subject: Cleaned logger initialisation X-Git-Url: https://git.njae.me.uk/?a=commitdiff_plain;h=666c9b4935627ccf0d7b0fd5a69e4c910d6fb281;p=cipher-training.git Cleaned logger initialisation --- diff --git a/cipherbreak.py b/cipherbreak.py index 02e63c5..4f443c4 100644 --- a/cipherbreak.py +++ b/cipherbreak.py @@ -13,11 +13,11 @@ from multiprocessing import Pool import matplotlib.pyplot as plt +logging.basicConfig(filename="cipher.log", level=logging.INFO) logger = logging.getLogger(__name__) -logger.addHandler(logging.FileHandler('cipher.log')) -logger.setLevel(logging.WARNING) -#logger.setLevel(logging.INFO) -#logger.setLevel(logging.DEBUG) +# logger.setLevel(logging.WARNING) +# logger.setLevel(logging.INFO) +# logger.setLevel(logging.DEBUG) from cipher import * from language_models import *