Files
tamigo-cli/venv/lib/python3.12/site-packages/rich/__pycache__/logging.cpython-312.pyc

108 lines
14 KiB
Plaintext
Raw Normal View History

<EFBFBD>
<00><16>i<EFBFBD>0<00> <00><><00>ddlZddlmZddlmZmZddlmZddlmZddlm Z m
Z
m Z m Z m Z mZddlmZdd lmZdd
lmZmZdd lmZmZdd lmZmZdd lmZddlmZGd<0F>de<02>Z e!dk(<00>ruddl"m#Z#dZ$ejJde$de dd<16><17>g<01><18>ejLd<19>Z'e'jQd<1A>e'jQd<1B>e#d<08>e'jQd<1C>e'jQd<1D>e'jQd<1E>e'jSd<1F>e#d<08>e'jUd d!d"gd#<23>d$gd%d&<26>d!ddd%d'<27><04>e'jUd(<28>e'jWd)<29>e'jQd*<2A>e'jQd+<2B>e'jSd,<2C>d3d-<2D>Z,e,<2C>e#d<08>e'j[d.<2E>e'jQd/<2F>e'jQd0e.d<16>1<EFBFBD><00>2<EFBFBD>yy)4<>N)<01>datetime)<02>Handler<65> LogRecord)<01>Path)<01>
ModuleType)<06>ClassVar<61>Iterable<6C>List<73>Optional<61>Type<70>Union)<01>NullFile<6C>)<01> get_console)<02>FormatTimeCallable<6C> LogRender)<02>Console<6C>ConsoleRenderable)<02> Highlighter<65>ReprHighlighter)<01>Text)<01> Tracebackc0<00><><00><00>eZdZUdZgd<02>Zeeeee d<e
Z ee e e d<ejdfddddddddddd dddd
d d d ddd<0F>deeefdeededededededee dededeedeededeededed eeeefd!ed"ed#ed$eeefd%eeed&df.<2E>fd'<27>Zd(ed&efd)<29>Zd(ed&dfd*<2A>Zd(ed+ed&d,fd-<2D>Zd(ed.eed/d,d&d,fd0<64>Z<1E>xZS)1<> RichHandlera<72> A logging handler that renders output with Rich. The time / level / message and file are displayed in columns.
The level is color coded, and the message is syntax highlighted.
Note:
Be careful when enabling console markup in log messages if you have configured logging for libraries not
under your control. If a dependency writes messages containing square brackets, it may not produce the intended output.
Args:
level (Union[int, str], optional): Log level. Defaults to logging.NOTSET.
console (:class:`~rich.console.Console`, optional): Optional console instance to write logs.
Default will use a global console instance writing to stdout.
show_time (bool, optional): Show a column for the time. Defaults to True.
omit_repeated_times (bool, optional): Omit repetition of the same time. Defaults to True.
show_level (bool, optional): Show a column for the level. Defaults to True.
show_path (bool, optional): Show the path to the original log call. Defaults to True.
enable_link_path (bool, optional): Enable terminal link of path column to file. Defaults to True.
highlighter (Highlighter, optional): Highlighter to style log messages, or None to use ReprHighlighter. Defaults to None.
markup (bool, optional): Enable console markup in log messages. Defaults to False.
rich_tracebacks (bool, optional): Enable rich tracebacks with syntax highlighting and formatting. Defaults to False.
tracebacks_width (Optional[int], optional): Number of characters used to render tracebacks, or None for full width. Defaults to None.
tracebacks_code_width (int, optional): Number of code characters used to render tracebacks, or None for full width. Defaults to 88.
tracebacks_extra_lines (int, optional): Additional lines of code to render tracebacks, or None for full width. Defaults to None.
tracebacks_theme (str, optional): Override pygments theme used in traceback.
tracebacks_word_wrap (bool, optional): Enable word wrapping of long tracebacks lines. Defaults to True.
tracebacks_show_locals (bool, optional): Enable display of locals in tracebacks. Defaults to False.
tracebacks_suppress (Sequence[Union[str, ModuleType]]): Optional sequence of modules or paths to exclude from traceback.
tracebacks_max_frames (int, optional): Optional maximum number of frames returned by traceback.
locals_max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
Defaults to 10.
locals_max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to 80.
log_time_format (Union[str, TimeFormatterCallable], optional): If ``log_time`` is enabled, either string for strftime or callable that formats the time. Defaults to "[%x %X] ".
keywords (List[str], optional): List of words to highlight instead of ``RichHandler.KEYWORDS``.
)<08>GET<45>POST<53>HEAD<41>PUT<55>DELETE<54>OPTIONS<4E>TRACE<43>PATCH<43>KEYWORDS<44>HIGHLIGHTER_CLASSNTF<54>X<00><00><00>d<00>
<00>Pz[%x %X])<14> show_time<6D>omit_repeated_times<65>
show_level<EFBFBD> show_path<74>enable_link_path<74> highlighter<65>markup<75>rich_tracebacks<6B>tracebacks_width<74>tracebacks_code_width<74>tracebacks_extra_lines<65>tracebacks_theme<6D>tracebacks_word_wrap<61>tracebacks_show_locals<6C>tracebacks_suppress<73>tracebacks_max_frames<65>locals_max_length<74>locals_max_string<6E>log_time_format<61>keywords<64>level<65>consoler+r,r-r.r/r0r1r2r3r4r5r6r7r8r9r:r;r<r=r><00>returnc<00>n<00><01>t<00>|<00>|<01><01>|xs
t<00>|_|xs|j <00>|_t |||||d<00><02>|_||_| |_ |
|_
| |_ | |_ ||_ ||_||_||_||_| |_||_||_||_y)N)r?)r+r-r.<00> time_formatr,<00> level_width)<16>super<65>__init__rr@r$r0r<00> _log_renderr/r1r2r3r5r6r7r8r9r:r4r;r<r>)<18>selfr?r@r+r,r-r.r/r0r1r2r3r4r5r6r7r8r9r:r;r<r=r><00> __class__s <20><>R/home/daniel/Projects/tamigo-cli/venv/lib/python3.12/site-packages/rich/logging.pyrFzRichHandler.__init__As<><00><><00>4 <0E><07><18>u<EFBFBD><18>%<25><1E>/<2F>+<2B>-<2D><04> <0C>&<26>B<>$<24>*@<40>*@<40>*B<><04><18>$<24><1F>!<21><1F>'<27> 3<><1C> 
<EFBFBD><04><18>!1<><04><1D><1C><04> <0B>.<2E><04><1C> 0<><04><1D>&<<3C><04>#<23> 0<><04><1D>$8<><04>!<21>&<<3C><04>#<23>#6<><04> <20>%:<3A><04>"<22>%:<3A><04>"<22>!2<><04><1E>!2<><04><1E> <20><04> <0A><00>recordc<00><><00>|j}tj|jd<01>d|j <00><00><00><02>}|S)z<>Get the level name from the record.
Args:
record (LogRecord): LogRecord instance.
Returns:
Text: A tuple of the style and level name.
<20>zlogging.level.)<05> levelnamer<00>styled<65>ljust<73>lower)rHrL<00>
level_name<EFBFBD>
level_texts rJ<00>get_level_textzRichHandler.get_level_textusF<00><00><1C>%<25>%<25>
<EFBFBD><19>[<5B>[<5B> <16> <1C> <1C>Q<EFBFBD> <1F>><3E>*<2A>2B<32>2B<32>2D<32>1E<31>!F<>
<EFBFBD>
<EFBFBD><1A>rKc<00><00>|j|<01>}d}|j<00>rF|j<00>r9|jdk7<00>r)|j\}}}|<04>J<00>|<05>J<00>tj||||j
|j |j|j|j|j|j|j|j|j<00><03> }|j<00>}|j ro|j<00>|_|j }t%|d<04>r1|j'<00>r!|j)||j*<00>|_|j/|<01>}|j1||<02>}|j3|||<08><05>} t5|j6j8t:<00>r|j=|<01>y |j6j?| <09>y#t@$r|j=|<01>YywxYw)zInvoked by logging.N)NNN)
<EFBFBD>width<74>
code_width<EFBFBD> extra_lines<65>theme<6D> word_wrap<61> show_localsr;r<<00>suppress<73>
max_frames<EFBFBD>usesTime)rL<00> traceback<63>message_renderable)!<21>formatr2<00>exc_infor<00>from_exceptionr3r4r5r6r7r8r;r<r9r:<00>
getMessage<EFBFBD> formatter<65>message<67>hasattrr_<00>
formatTime<EFBFBD>datefmt<6D>asctime<6D> formatMessage<67>render_message<67>render<65>
isinstancer@<00>filer<00> handleError<6F>print<6E> Exception)
rHrLrgr`<00>exc_type<70> exc_value<75> exc_tracebackrfra<00>log_renderables
rJ<00>emitzRichHandler.emit<69>s<><00><00><16>+<2B>+<2B>f<EFBFBD>%<25><07><18> <09> <10> <20> <20><16><0F><0F><16><0F><0F>#5<>5<>17<31><1F><1F> .<2E>H<EFBFBD>i<EFBFBD><1D><1B>'<27> '<27>'<27><1C>(<28> (<28>(<28>!<21>0<>0<><18><19><1D><1A>+<2B>+<2B><1F>5<>5<> <20>7<>7<><1A>+<2B>+<2B><1E>3<>3<> <20>7<>7<>"&<26>"8<>"8<>"&<26>"8<>"8<><1D>1<>1<><1F>5<>5<><0E>I<EFBFBD><1D>'<27>'<27>)<29>G<EFBFBD><13>~<7E>~<7E>!'<27>!2<>!2<>!4<><06><0E> <20>N<EFBFBD>N<EFBFBD> <09><1A>9<EFBFBD>j<EFBFBD>1<>i<EFBFBD>6H<36>6H<36>6J<36>%.<2E>%9<>%9<>&<26>)<29>BS<42>BS<42>%T<>F<EFBFBD>N<EFBFBD>#<23>1<>1<>&<26>9<><07>!<21>0<>0<><16><17>A<><1A><1D><1B><1B><19>Y<EFBFBD>CU<43>%<25>
<EFBFBD><0E> <16>d<EFBFBD>l<EFBFBD>l<EFBFBD>'<27>'<27><18> 2<> <11> <1C> <1C>V<EFBFBD> $<24> )<29><14> <0C> <0C>"<22>"<22>><3E>2<><32><1C> )<29><14> <20> <20><16>(<28> )<29>s<00>G <00> G=<03><G=rgrc<00>D<00>t|d|j<00>}|rtj|<02>n
t|<02>}t|d|j<00>}|r||<04>}|j
<00>|j |_|j
r|j|j
d<03>|S)z<>Render message text in to Text.
Args:
record (LogRecord): logging Record.
message (str): String containing log message.
Returns:
ConsoleRenderable: Renderable to display log message.
r1r0zlogging.keyword)<08>getattrr1r<00> from_markupr0r>r#<00>highlight_words)rHrLrg<00>
use_markup<EFBFBD> message_textr0s rJrmzRichHandler.render_message<67>s<><00><00><1D>V<EFBFBD>X<EFBFBD>t<EFBFBD>{<7B>{<7B>;<3B>
<EFBFBD>4><3E>t<EFBFBD>'<27>'<27><07>0<>D<EFBFBD><17>M<EFBFBD> <0C><1D>f<EFBFBD>m<EFBFBD>T<EFBFBD>5E<35>5E<35>F<> <0B> <16>&<26>|<7C>4<>L<EFBFBD> <0F>=<3D>=<3D> <20> <20>M<EFBFBD>M<EFBFBD>D<EFBFBD>M<EFBFBD> <0F>=<3D>=<3D> <18> (<28> (<28><14><1D><1D>8I<38> J<><1B>rKr`rac
<00><><00>t|j<00>j}|j|<01>}|j<00>dn|jj
}t j|j<00>}|j|j|s|gn||g|||||j|jr |jnd<01><02>}|S)avRender log for display.
Args:
record (LogRecord): logging Record.
traceback (Optional[Traceback]): Traceback instance or None for no Traceback.
message_renderable (ConsoleRenderable): Renderable (typically Text) containing log message contents.
Returns:
ConsoleRenderable: Renderable to display log.
N)<06>log_timerCr?<00>path<74>line_no<6E> link_path) r<00>pathname<6D>namerUrfrjr<00> fromtimestamp<6D>createdrGr@<00>linenor/) rHrLr`rar<>r?rCr<>rws rJrnzRichHandler.render<65>s<><00><00>"<14>F<EFBFBD>O<EFBFBD>O<EFBFBD>$<24>)<29>)<29><04><14>#<23>#<23>F<EFBFBD>+<2B><05>"<22>n<EFBFBD>n<EFBFBD>4<>d<EFBFBD>$<24>.<2E>.<2E>:P<>:P<> <0B><1B>)<29>)<29>&<26>.<2E>.<2E>9<><08><1D>)<29>)<29> <10>L<EFBFBD>L<EFBFBD>(1<> <1F> <20>8J<38>I<EFBFBD>7V<37><1D>#<23><17><15><1A>M<EFBFBD>M<EFBFBD>)-<2D>)><3E>)><3E>f<EFBFBD>o<EFBFBD>o<EFBFBD>D<EFBFBD>*<2A> 
<EFBFBD><0E><1E>rK) <20>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__r#rr r
<00>str<74>__annotations__rr$r r<00>logging<6E>NOTSETr <00>intr<00>boolr rrrFrrrUrxrmrrn<00> __classcell__)rIs@rJrrs*<00><><00> <08>D /<06>H<EFBFBD>h<EFBFBD>x<EFBFBD><04>S<EFBFBD> <09>*<2A>+<2B> <06>6E<01><15>x<EFBFBD><04>[<5B> 1<>2<>D<>")<29><1E><1E>%)<29>2!<21>
<1F>$(<28><1F><1E>!%<25>-1<><1C> %<25>*.<2E>/1<>&'<27>*.<2E>%)<29>',<2C>@B<>%(<28>!#<23>!#<23>:C<>(,<2C>12!<21><14>S<EFBFBD>#<23>X<EFBFBD><EFBFBD>2!<21><1A>'<27>"<22>2!<21>
<18> 2!<21> "<22> 2!<21><19>2!<21><18>2!<21><1F>2!<21><1E>k<EFBFBD>*<2A>2!<21><15>2!<21><1E>2!<21>#<23>3<EFBFBD>-<2D>2!<21> (<28><03>}<7D>2!<21>!$<24>2!<21> #<23>3<EFBFBD>-<2D>!2!<21>"#<23>#2!<21>$!%<25>%2!<21>&&<26>e<EFBFBD>C<EFBFBD><1A>O<EFBFBD>&<<3C>=<3D>'2!<21>( #<23>)2!<21>*<1F>+2!<21>,<1F>-2!<21>.<1F>s<EFBFBD>$6<>6<>7<>/2!<21>0<1B>4<EFBFBD><03>9<EFBFBD>%<25>12!<21>2
<0E>32!<21>h <1A>Y<EFBFBD> <1A>4<EFBFBD> <1A>0)<29>9<EFBFBD>0)<29><14>0)<29>d<1C>Y<EFBFBD><1C><13><1C>AT<41><1C>2 <1E><1A> <1E><1C>I<EFBFBD>&<26> <1E>
0<> <1E>
<1D> rKr<00>__main__)<01>sleepz %(message)sr<73>z[%X]T)r2r8)r?rbrj<00>handlers<72>richzServer starting...z"Listening on http://127.0.0.1:8080zGET /index.html 200 1298z)GET /imgs/backgrounds/back1.jpg 200 54386zGET /css/styles.css 200 54386zGET /favicon.ico 404 242zJSONRPC request
--> %r
<-- %rz1.1<EFBFBD>confirmFruitPurchase)<04>apple<6C>orange<67>mangoes<65>pomelog+<2B><16><><EFBFBD><EFBFBD>?<3F> 194521489)<04>version<6F>method<6F>params<6D>id)r<><00>result<6C>errorr<72>zrLoading configuration file /adasd/asdasd/qeqwe/qwrqwrqwr/sdgsdgsdg/werwerwer/dfgerert/ertertert/ertetert/werwerwerz$Unable to find 'pomelo' in database!zPOST /jsonrpc/ 200 65532zPOST /admin/ 401 42234z%password was rejected for admin site.c<00><><00>d}d}dgdz}tjd<05> ||z y#tjd<06>YyxYw)Nrr<00>foor(z in dividezAn error of some kind occurred!)<03>log<6F>debug<75> exception)<03>number<65>divisor<6F>fooss rJ<00>divider<65>sD<00><00><12><06><13><07><15>w<EFBFBD><13>}<7D><04> <0B> <09> <09>+<2B><1E> =<3D> <12>W<EFBFBD> <1C><> =<3D> <0F>M<EFBFBD>M<EFBFBD>;<3B> <<3C>s <00>'<00>AzOut of memory!zServer exited with code=-1z[bold]EXITING...[/bold])r1)<01>extra)rAN)/r<>rrr<00>pathlibr<00>typesr<00>typingrr r
r r r <00>rich._null_filer<00>rrGrrr@rrr0rr<00>textrr`rrr<><00>timer<65><00>FORMAT<41> basicConfig<69> getLoggerr<72><00>info<66>warningr<67>r<>r<><00>critical<61>dictr'rKrJ<00><module>r<>s<><00><01><0E><1D>&<26><18><1C>B<>B<>$<24><19>6<>/<2F>5<><16> <20>]<1E>'<27>]<1E>@ <0C>z<EFBFBD><19><1A> <1A>F<EFBFBD><17>G<EFBFBD><17><17><16><15><16><1D>d<EFBFBD>4<EFBFBD>P<>Q<> <06> <1C>'<27>
<1B>
<1B>F<EFBFBD>
#<23>C<EFBFBD><07>H<EFBFBD>H<EFBFBD> !<21>"<22><07>H<EFBFBD>H<EFBFBD> 1<>2<> <09>!<21>H<EFBFBD><07>H<EFBFBD>H<EFBFBD> '<27>(<28><07>H<EFBFBD>H<EFBFBD> 8<>9<><07>H<EFBFBD>H<EFBFBD> ,<2C>-<2D><07>K<EFBFBD>K<EFBFBD>*<2A>+<2B> <09>!<21>H<EFBFBD><07>I<EFBFBD>I<EFBFBD>)<29><1C>,<2C>?<3F><15>G<><1D> 
<EFBFBD> <1A>T<EFBFBD>D<EFBFBD> <0B>L<> <06><08>I<EFBFBD>I<EFBFBD>|<7C><06><08>I<EFBFBD>I<EFBFBD>4<>5<><07>H<EFBFBD>H<EFBFBD> '<27>(<28><07>H<EFBFBD>H<EFBFBD> %<25>&<26><07>K<EFBFBD>K<EFBFBD>7<>8<>=<3D> <0B>H<EFBFBD> <09>!<21>H<EFBFBD><07>L<EFBFBD>L<EFBFBD>!<21>"<22><07>H<EFBFBD>H<EFBFBD> )<29>*<2A><07>H<EFBFBD>H<EFBFBD> &<26>d<EFBFBD>$<24>.?<3F>H<EFBFBD>@<40>orK