Subversion Repositories basico

Compare Revisions

Ignore whitespace Rev 131 → Rev 132

/branches/BR-0.3/basico/basico.py
45,7 → 45,7
from .env import ROOT, APP, LPATH, GPATH, FILE, STATS
 
 
class Basico:
class Basico(object):
def __init__(self):
"""Main class: the entry point for Basico.
It stands for Controller.
/branches/BR-0.3/basico/log.py
24,9 → 24,9
log.addHandler(ch) # add console handler to logger
 
# Redirect log to file
fh = logging.FileHandler(LOG_FILE)
fh.setFormatter(formatter)
fh.setLevel(logging.DEBUG) # Set logging devel
log.addHandler(fh) # add file handler to logger
#~ fh = logging.FileHandler(LOG_FILE)
#~ fh.setFormatter(formatter)
#~ fh.setLevel(logging.DEBUG) # Set logging devel
#~ log.addHandler(fh) # add file handler to logger
 
return log