예제 #1
0
파일: tail.py 프로젝트: ketilk/Atlas
#!/usr/bin/env python

from atlas import Atlas
import logging
import time

logging.basicConfig(filename="tail.log",
  filemode='a',
  format='%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s',
  datefmt='%H:%M:%S',
  level=logging.DEBUG)
logger = logging.getLogger
    
atlas = Atlas()


while True:
  try:
    print atlas.get_topic()
  except:
    break