[sqlalchemy] Re: _should_log_info - Setting up logging correctly.

2009-04-03 Thread Michael Bayer
Toby Bradshaw wrote: > > Well problem worked around by using echo=True for dev builds and thanks > for your suggestion. > > Your statement: > >> Doing setLevel() etc. you have to do > before any SQLAlchemy code is imported > > Unfortunately doesn't seem to help since the logging module later repor

[sqlalchemy] Re: _should_log_info - Setting up logging correctly.

2009-04-03 Thread Toby Bradshaw
Well problem worked around by using echo=True for dev builds and thanks for your suggestion. Your statement: > Doing setLevel() etc. you have to do before any SQLAlchemy code is imported Unfortunately doesn't seem to help since the logging module later reports: "No handlers could be found for

[sqlalchemy] Re: _should_log_info - Setting up logging correctly.

2009-04-02 Thread Michael Bayer
Toby Bradshaw wrote: > > Hi, > > Succintly: What's the correct way to set up logging in SQLAlchemy 0.5.2 ?? > > The docs say simply set the logger level correctly. However I notice in > the source that most classes make a check on _should_log_info (which is > set during __init__) before deciding w