Ñò Š„[Jc@s•dZddkZddkZeidƒZeieijoeieiƒne a d„Z e d„Z dd„Zdefd„ƒYZdS( sCLogging control and utilities. Control of logging for SA can be performed from the regular python logging module. The regular dotted module namespace is used, starting at 'sqlalchemy'. For class-level logging, the class name is appended. The "echo" keyword parameter which is available on SQLA ``Engine`` and ``Pool`` objects corresponds to a logger specific to that instance only. E.g.:: engine.echo = True is equivalent to:: import logging logger = logging.getLogger('sqlalchemy.engine.Engine.%s' % hex(id(engine))) logger.setLevel(logging.DEBUG) iÿÿÿÿNt sqlalchemycCssti|ƒiƒtijo tantp?tatitiƒ}|i ti dƒƒt i |ƒndS(Ns.%(asctime)s %(levelname)s %(name)s %(message)s( tloggingt getLoggertgetEffectiveLeveltWARNtTruetdefault_enabledt StreamHandlertsyststdoutt setFormattert Formattert rootloggert addHandler(tnamethandler((s2/usr/lib/python2.6/site-packages/sqlalchemy/log.pytdefault_logging&s   cCs–ti|id|iƒ}|djo|itiƒn"|djo|itiƒn|itiƒ|_|itiƒ|_ ||_ dS(Nt.tdebugtinfo( RRt __module__t__name__tsetLeveltDEBUGtINFOt isEnabledFort_should_log_debugt_should_log_infotlogger(tclstenableR((s2/usr/lib/python2.6/site-packages/sqlalchemy/log.pyt class_logger1s  cCsd|ii|iitt|ƒƒdf}|dj oŠti|ƒ}|djot|ƒ|i ti ƒqÕ|t jot|ƒ|i ti ƒqÕ|t jo|i tiƒqÕnti|ƒ}|iti ƒ|_|iti ƒ|_|S(sâcreate a logger for an instance. Warning: this is an expensive call which also results in a permanent increase in memory overhead for each call. Use only for low-volume, long-time-spanning objects. s %s.%s.0x...%siüÿÿÿRN(t __class__RRthextidtNoneRRRRRRRtFalsetNOTSETRRR(tinstancetechoflagRtl((s2/usr/lib/python2.6/site-packages/sqlalchemy/log.pytinstance_logger;s"        t echo_propertycBs eZdZd„Zd„ZRS(s} When ``True``, enable log output for this element. This has the effect of setting the Python logging level for the namespace of this element's class and object reference. A value of boolean ``True`` indicates that the loglevel ``logging.INFO`` will be set for the logger, whereas the string value ``debug`` will set the loglevel to ``logging.DEBUG``. cCs<|djo|S|iodp|iotptSdS(NR(R#RRRR$(tselfR&towner((s2/usr/lib/python2.6/site-packages/sqlalchemy/log.pyt__get__gs cCst|d|ƒdS(NR'(R)(R+R&tvalue((s2/usr/lib/python2.6/site-packages/sqlalchemy/log.pyt__set__ms(RRt__doc__R-R/(((s2/usr/lib/python2.6/site-packages/sqlalchemy/log.pyR*\s  (R0RRRR tlevelR%RRR$RRRR#R)tobjectR*(((s2/usr/lib/python2.6/site-packages/sqlalchemy/log.pyts   !