Geo, Sorry, I didn't explain clearly.
Here is the problem. The crossbow_py is my project, which uses sqlalchemy as a dependent library. From python package point of view, pyramid is a dependent library also, so as pyramid.authorization. Before, I could get all the logs from sqlalchemy or pyramid.authorization. But, all of sudden, log stopped working for those these dependent packages. I can still get log in the project itself (crossbow_py) by using crossbow_py as the logger. I guess there is a problem of paste parsing the development.ini. But, I don't know why. Thanks, -Shu On Sunday, February 17, 2013 1:29:21 AM UTC-8, Geo wrote: > > Hi Lin, > > It's hard to understand your questions. The issue is related to > authorization log, or sqlalchemy log? What does the covering project mean? > > On Thu, Feb 14, 2013 at 1:46 PM, Shu Lin <[email protected] > <javascript:>>wrote: > >> Hi, >> >> The debug log doesn't work for dependent libraries suddenly. For example, >> even I enabled debug_authorization, there was no authorization log printed >> out anymore. The log still works for the covering project, in this case, it >> is "crossbow_py". But, not for sqlalchemy anymore. What's wrong with my >> configuration? Below is my development.ini. >> >> Thanks a lot, >> >> -Shu >> >> === >> >> [app:main] >> >> use = egg:crossbow_py >> >> reload_templates = true >> >> debug_authorization = true >> >> debug_notfound = false >> >> debug_routematch = false >> >> debug_templates = false >> >> default_locale_name = en >> >> jinja2.directories = crossbow_py:templates >> >> pyramid.includes = >> >> pyramid_jinja2 >> >> pyramid_debugtoolbar >> >> pyramid_tm >> >> debugtoolbar.hosts = 0.0.0.0/0 >> >> >> sqlalchemy.url = sqlite:///%(here)s/crossbow.sqlite >> >> >> session.type = cookie >> >> session.key = crossbow >> >> session.encrypt_key = mysecretencryptionkey >> >> session.validate_key = mysecretvalidationkey >> >> session.cookie_on_exception = true >> >> >> [server:main] >> >> use = egg:pyramid#wsgiref >> >> host = 0.0.0.0 >> >> port = 8080 >> >> >> # Begin logging configuration >> >> >> [loggers] >> >> keys = root, crossbow_py, sqlalchemy >> >> >> [handlers] >> >> keys = console, filelog >> >> >> [formatters] >> >> keys = generic >> >> >> [logger_root] >> >> level = INFO >> >> handlers = console, filelog >> >> >> [logger_crossbow_py] >> >> level = DEBUG >> >> handlers = >> >> qualname = crossbow_py >> >> >> [logger_sqlalchemy] >> >> level = INFO >> >> handlers = >> >> qualname = sqlalchemy.engine >> >> # "level = INFO" logs SQL queries. >> >> # "level = DEBUG" logs SQL queries and results. >> >> # "level = WARN" logs neither. (Recommended for production systems.) >> >> >> [handler_console] >> >> class = StreamHandler >> >> args = (sys.stderr,) >> >> level = NOTSET >> >> formatter = generic >> >> >> [handler_filelog] >> >> class = FileHandler >> >> args = ('%(here)s/crossbow.log','a') >> >> level = NOTSET >> >> formatter = generic >> >> >> [formatter_generic] >> >> format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] >> %(message)s >> >> >> # End logging configuration >> >> -- >> You received this message because you are subscribed to the Google Groups >> "pylons-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> Visit this group at http://groups.google.com/group/pylons-discuss?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
