Files
order/.venv/Lib/site-packages/sqlalchemy/__pycache__/log.cpython-312.pyc

68 lines
9.2 KiB
Plaintext
Raw Normal View History

2025-08-27 21:11:48 +08:00
<EFBFBD>
#{<7B>g%<00><00><00>dZddlZddlZejd<03>Zej
ej k(rejej<00>d<04>Z e
<EFBFBD>Z d<05>Z Gd<06>de <0A>ZGd<08>d e <0A>Zd d
<EFBFBD>ZGd <0B>d e <0A>Zy)a<>Logging 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, available on SQLA :class:`.Engine`
and :class:`.Pool` objects, corresponds to a logger specific to that
instance only.
<EFBFBD>N<>
sqlalchemyc<00><><00>tjtj<00>}|j tj
d<01><00>|j |<01>y)Nz.%(asctime)s %(levelname)s %(name)s %(message)s)<07>logging<6E> StreamHandler<65>sys<79>stdout<75> setFormatter<65> Formatter<65>
addHandler)<02>logger<65>handlers <20>7D:\mooc\order\.venv\Lib\site-packages\sqlalchemy/log.py<70>_add_default_handlerr!sC<00><00><15>#<23>#<23>C<EFBFBD>J<EFBFBD>J<EFBFBD>/<2F>G<EFBFBD> <0B><18><18><0F><19><19>J<>K<><06> <0B><15><15>g<EFBFBD><1E>c<00><><00><01>tj|jdz|jz<00><00><01>fd<02>|_<00>fd<03>|_<00>|_tj|<00>|S)N<>.c<00>B<00><01><00>jtj<00>S<00>N)<03> isEnabledForr<00>DEBUG<55><02>selfr s <20>r<00><lambda>zclass_logger.<locals>.<lambda>.s<00><><00><16>)<<3C>)<<3C>W<EFBFBD>]<5D>]<5D>)Krc<00>B<00><01><00>jtj<00>Sr)rr<00>INFOrs <20>rrzclass_logger.<locals>.<lambda>/s<00><><00><06>(;<3B>(;<3B>G<EFBFBD>L<EFBFBD>L<EFBFBD>(Ir) r<00> getLogger<65>
__module__<EFBFBD>__name__<5F>_should_log_debug<75>_should_log_infor <00>_logged_classes<65>add)<02>clsr s @r<00> class_loggerr$,sO<00><><00> <14> <1E> <1E>s<EFBFBD>~<7E>~<7E><03>3<>c<EFBFBD>l<EFBFBD>l<EFBFBD>B<> C<>F<EFBFBD>K<>C<EFBFBD><19>I<>C<EFBFBD><18><17>C<EFBFBD>J<EFBFBD><13><17><17><03><1C> <0E>Jrc<00><00>eZdZdZd<02>Zd<03>Zy)<04>
IdentifiedNc<00>T<00>|jjtj<00>Sr)r rrr<00>rs rrzIdentified._should_log_debug8s<00><00><13>{<7B>{<7B>'<27>'<27><07> <0A> <0A>6<>6rc<00>T<00>|jjtj<00>Sr)r rrrr(s rr zIdentified._should_log_info;s<00><00><13>{<7B>{<7B>'<27>'<27><07> <0C> <0C>5<>5r)rr<00> __qualname__<5F> logging_namerr <00>rrr&r&5s<00><00><17>L<EFBFBD>7<>6rr&c<00><><00>eZdZdZej
ej
ej ejd<02>Zd<03>Z d<04>Z
d<05>Z d<06>Z e Z d<07>Zd<08>Zd <09>Zd
<EFBFBD>Zd <0B>Zd <0C>Zy )<0E>InstanceLoggeraA logger adapter (wrapper) for :class:`.Identified` subclasses.
This allows multiple instances (e.g. Engine or Pool instances)
to share a logger, but have its verbosity controlled on a
per-instance basis.
The basic functionality is to return a logging level
which is based on an instance's echo setting.
Default implementation is:
'debug' -> logging.DEBUG
True -> logging.INFO
False -> Effective level of underlying logger (
logging.WARNING by default)
None -> same as False
)NFT<46>debugc<00><><00>||_tj|<02>|_|j|tj
kr-|jj st|j<00>yyyr)<08>echorrr <00> _echo_mapr<00>handlersr)rr1<00>names r<00>__init__zInstanceLogger.__init__ZsS<00><00><18><04> <09><1D>'<27>'<27><04>-<2D><04> <0B> <10>><3E>><3E>$<24> <1F>7<EFBFBD><<3C><<3C> /<2F><04> <0B> <0B>8L<38>8L<38> <20><14><1B><1B> -<2D>9M<01> /rc<00>N<00>|jtj|g|<02><01>i|<03><01>y)z/Delegate a debug call to the underlying logger.N)<03>logrr<00>r<00>msg<73>args<67>kwargss rr/zInstanceLogger.debugfs"<00><00> <11><04><08><08><17><1D><1D><03>5<>d<EFBFBD>5<>f<EFBFBD>5rc<00>N<00>|jtj|g|<02><01>i|<03><01>y)z/Delegate an info call to the underlying logger.N)r7rrr8s r<00>infozInstanceLogger.infoks"<00><00> <11><04><08><08><17><1C><1C>s<EFBFBD>4<>T<EFBFBD>4<>V<EFBFBD>4rc<00>N<00>|jtj|g|<02><01>i|<03><01>y)z1Delegate a warning call to the underlying logger.N)r7r<00>WARNINGr8s r<00>warningzInstanceLogger.warningps"<00><00> <11><04><08><08><17><1F><1F>#<23>7<><04>7<><06>7rc<00>N<00>|jtj|g|<02><01>i|<03><01>y)zB
Delegate an error call to the underlying logger.
N<>r7r<00>ERRORr8s r<00>errorzInstanceLogger.errorws"<00><00> <11><04><08><08><17><1D><1D><03>5<>d<EFBFBD>5<>f<EFBFBD>5rc<00>X<00>d|d<|jtj|g|<02><01>i|<03><01>y)z4Delegate an exception call to the underlying logger.<2E><00>exc_infoNrBr8s r<00> exceptionzInstanceLogger.exception}s,<00><00><1F><06>z<EFBFBD><1A><10><04><08><08><17><1D><1D><03>5<>d<EFBFBD>5<>f<EFBFBD>5rc<00>N<00>|jtj|g|<02><01>i|<03><01>y)z2Delegate a critical call to the underlying logger.N)r7r<00>CRITICALr8s r<00>criticalzInstanceLogger.critical<61>s$<00><00> <11><04><08><08><17>!<21>!<21>3<EFBFBD>8<><14>8<><16>8rc<00>"<00>|jjj|k\ry|j|j}|t
j k(r|jj<00>}||k\r |jj|||fi|<04><01>yy)z<>Delegate a log call to the underlying logger.
The level here is determined by the echo
flag as well as that of the underlying logger, and
logger._log() is called directly.
N) r <00>manager<65>disabler2r1r<00>NOTSET<45>getEffectiveLevel<65>_log)r<00>levelr9r:r;<00>selected_levels rr7zInstanceLogger.log<6F>sy<00><00> <10>;<3B>;<3B> <1E> <1E> &<26> &<26>%<25> /<2F> <12><1D><1E><1E><04> <09> <09>2<><0E> <19>W<EFBFBD>^<5E>^<5E> +<2B>!<21>[<5B>[<5B>:<3A>:<3A><<3C>N<EFBFBD> <10>N<EFBFBD> "<22> <1C>D<EFBFBD>K<EFBFBD>K<EFBFBD> <1C> <1C>U<EFBFBD>C<EFBFBD><14> 8<><16> 8<> #rc<00>p<00>|jjj|k\ry||j<00>k\S)z)Is this logger enabled for level 'level'?F)r rMrNrP<00>rrRs rrzInstanceLogger.isEnabledFor<6F>s3<00><00> <10>;<3B>;<3B> <1E> <1E> &<26> &<26>%<25> /<2F><18><14><04>.<2E>.<2E>0<>0<>0rc<00><><00>|j|j}|tjk(r|jj <00>}|S)z+What's the effective level for this logger?)r2r1rrOr rPrUs rrPz InstanceLogger.getEffectiveLevel<65>s9<00><00><15><0E><0E>t<EFBFBD>y<EFBFBD>y<EFBFBD>)<29><05> <10>G<EFBFBD>N<EFBFBD>N<EFBFBD> "<22><18>K<EFBFBD>K<EFBFBD>1<>1<>3<>E<EFBFBD><14> rN)rrr*<00>__doc__rrOrrr2r5r/r=r@<00>warnrDrHrKr7rrPr,rrr.r.?se<00><00><08>(<16>n<EFBFBD>n<EFBFBD><16>~<7E>~<7E><15>l<EFBFBD>l<EFBFBD><18><1D><1D> <06>I<EFBFBD>.<2E>6<>
5<>
8<>
<13>D<EFBFBD>6<> 6<> 9<>
9<>,1<>rr.c<00>j<00>|jr=|jj<00>d|jj<00>d|j<00><01>}n/|jj<00>d|jj<00><01>}||_|dvrt j |<02>}||_yt||<02>}||_y)zEcreate a logger for an instance that implements :class:`.Identified`.r)FNN) r+<00> __class__rr<00>_echorrr.r )<04>instance<63>echoflagr4r s r<00>instance_loggerr^<00>s<><00><00><10><1C><1C> <14> <1E> <1E> )<29> )<29> <14> <1E> <1E> '<27> '<27> <14> !<21> !<21>
<EFBFBD><04> <15> <1E> <1E> )<29> )<29> <14> <1E> <1E> '<27> '<27>
<EFBFBD><04>
<1E>H<EFBFBD>N<EFBFBD><0F>=<3D> <20><19>"<22>"<22>4<EFBFBD>(<28><06><1D>H<EFBFBD>O<EFBFBD> <20><08>$<24>/<2F><06><1C>H<EFBFBD>Orc<00><00>eZdZdZd<02>Zd<03>Zy)<05> echo_propertya} 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``.
c<00>"<00>|<01>|S|jSr)r[)rr\<00>owners r<00>__get__zecho_property.__get__<5F>s<00><00> <13> <1B><17>K<EFBFBD><1B>><3E>><3E> !rc<00><00>t||<02><01>y)N)r])r^)rr\<00>values r<00>__set__zecho_property.__set__<5F>s <00><00><17><08>5<EFBFBD>1rN)rrr*rWrcrfr,rrr`r`<00>s<00><00><08>G<EFBFBD>"<22> 2rr`r)rWrrr<00>
rootloggerrRrO<00>setLevel<65>WARNr<00>setr!r$<00>objectr&r.r^r`r,rr<00><module>rls<><00><01>
<04><0F>
<EFBFBD> <1F>W<EFBFBD> <1E> <1E>|<7C> ,<2C>
<EFBFBD> <0A><13><13>w<EFBFBD>~<7E>~<7E>%<25><0E><17><17><07> <0C> <0C>%<25><1F><16>%<25><0F><0F>6<><16>6<>l<15>V<EFBFBD>l<15>^<1D><2<>F<EFBFBD>2r