lib/log.py
author terom
Fri, 21 Dec 2007 20:36:03 +0000
changeset 12 c2d8e9a754a1
child 14 4b5478da5850
permissions -rw-r--r--
Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
import logging

logging.basicConfig(
    level=logging.DEBUG,
    format="%(message)s",
#    format="%(name)8s %(levelname)8s   %(lineno)3d %(message)s",

)

index = logging.getLogger('index')
render = logging.getLogger('render')
template = logging.getLogger('template')

template.setLevel(logging.ERROR)