[geodisambig] Python scripts to prep GeoNames records for trie insertion

This commit is contained in:
Al
2015-03-13 11:56:48 -04:00
parent 53aa9bccb1
commit 284af74ba4
7 changed files with 619 additions and 0 deletions

10
scripts/geodata/log.py Normal file
View File

@@ -0,0 +1,10 @@
import logging
import sys
def log_to_stdout(level=logging.INFO):
handler = logging.StreamHandler(sys.stdout)
formatter = logging.Formatter('%(asctime)s %(levelname)s [%(name)s]: %(message)s')
handler.setFormatter(formatter)
logging.root.addHandler(handler)
logging.root.setLevel(level)