On Nov 23, 2007, at 6:30 PM, Rick Morrison wrote:
> Is there any way to configure logging on an engine instance after > the engine has been instantiated? > > it looks to me as if the engine init checks the module logger status > and sets a couple of flags "_should_log_info" and > "_should_log_debug". (I'm guessing these are there to keep the > logging function call count down). > > The issue is that there seems to be no way to make the engine > instance re-evaluate those flags, with the end effect being that > once the engine is instantiated, calling > logging.getLogger('sqlalchemy.engine').setLevel(whatever) has no > effect. > > it is about keeping call counts down. im pretty sure you can just set engine.echo=True though which does set the flags. as far as just detecting a set of getLogger() in the middle without any explicit message sent to the engine, theres no way we can really do that. the logging module is painfully slow. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---