mň –%ÜGc@sŠdZdkZedƒZeidƒieiƒead„Z d„Z d„Z d„Z d„Z d „Zd efd „ƒYZdS( sĂprovides a few functions used by instances to turn on/off their logging, including support for the usual "echo" parameter. 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, and for instance-level logging, the hex id of the instance is appended. The "echo" keyword parameter which is available on some SA objects corresponds to an instance-level logger for that instance. E.g.: engine.echo = True is equivalent to: import logging logging.getLogger('sqlalchemy.engine.Engine.%s' % hex(id(engine))).setLevel(logging.DEBUG) Ntloggingt sqlalchemycCs‚ti|ƒiƒtijo tantpNtatidƒ}tit i ƒ}|i ti dƒƒ|i|ƒndS(NRs.%(asctime)s %(levelname)s %(name)s %(message)s(Rt getLoggertnametgetEffectiveLeveltWARNtTruetdefault_enabledt rootloggert StreamHandlertsyststdoutthandlert setFormattert Formattert addHandler(RR R((t6/home/holguin2/public_html/spyce/sqlalchemy/logging.pytdefault_logging$s cCs0|iid|iidtt|ƒƒdS(Nt.s.0x..iţ˙˙˙(tinstancet __class__t __module__t__name__thextid(R((Rt_get_instance_name/scCstit|ƒƒS(N(RRRR(R((Rtinstance_logger5scCsti|id|iƒS(NR(RRtclsRR(R((Rt class_logger8scCs|itiƒS(N(tloggert isEnabledForRtDEBUG(R((Rtis_debug_enabled;scCs|itiƒS(N(RRRtINFO(R((Rtis_info_enabled=st echo_propertycBs8tZheid<eie