# -*- coding: utf-8 -*-
import logging
import sys

logger = logging.getLogger('gtkdoc')
formatter = logging.Formatter('%(xfilename)s:%(xlineno)d:%(message)s')
ch = logging.StreamHandler(sys.stdout)
ch.setLevel(logging.DEBUG)
ch.setFormatter(formatter)
logger.addHandler(ch)
logger.setLevel(logging.DEBUG)
logger.info('hello', extra={'xfilename':'foo.py','xlineno':32})
logger.info(u'☺ ☻', extra={'xfilename':'foo.py','xlineno':50})

