Commit 037503ec authored by Kathryn Elliott's avatar Kathryn Elliott

Remove logging from run-topic-model, it's already set up in the TopicModel class.

parent 311d105a
......@@ -10,23 +10,6 @@ import logging
from pprint import pprint
from topic_model import TopicModel
# https://docs.python.org/3/howto/logging-cookbook.html
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
datefmt='%m-%d %H:%M',
filename='topicModler.log',
filemode='w')
# define a Handler which writes INFO messages or higher to the sys.stderr
console = logging.StreamHandler()
console.setLevel(logging.WARNING)
# set a format which is simpler for console use
formatter = logging.Formatter('%(name)-12s: %(levelname)-8s %(message)s')
# tell the handler to use this format
console.setFormatter(formatter)
# add the handler to the root logger
logging.getLogger('').addHandler(console)
parser = argparse.ArgumentParser(description='Process some files.')
parser.add_argument('filenames', metavar='filename', type=str, nargs='+',
help='One or more files for the parser')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment