~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to start-loggerhead

  • Committer: Guillermo Gonzalez
  • Date: 2008-09-09 02:34:35 UTC
  • mto: (217.1.9 logging)
  • mto: This revision was merged to the branch mainline in revision 226.
  • Revision ID: guillo.gonzo@gmail.com-20080909023435-uwk2nxrs37d8ugtx
 * rename access logger to "loggerhead.access"
 * adds error_log handler to log errors in error.log file

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
from loggerhead import daemon
33
33
from loggerhead.apps.config import Root
34
34
from loggerhead.trace import make_handler, setup_logging
35
 
from loggerhead.apps.error import ErrorHandlerApp
36
35
 
37
36
def main():
38
37
    home = os.path.realpath(os.path.dirname(__file__))
97
96
 
98
97
    app = app
99
98
    app = make_middleware(app)
100
 
    app = make_filter(app, None, logger_name=log.name+'.access')
101
 
    app = ErrorHandlerApp(app)
 
99
    app = make_filter(app, None)
102
100
 
103
101
    if webpath:
104
102
        scheme, netloc, path, blah, blah, blah = urlparse.urlparse(webpath)