tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
X\¬Qc%@scdZddlZddlZddlZddlZddlZddlZddlZddddddd    d
d d d ddddddddddddddddddd d!d"d#d$d%d&d'g%Zyddl    Z    Wne
k
røe Z    nXyddl Z ddl Z Wne
k
r.e Z nXd(Zd)Zd*Zd+ZyeeZWnek
rneZnXeed,ƒr˜d-ejed.fZn3ed.jƒd/d0gkrÅed. d1ZneZejjeƒZd2„Zeed3ƒrd4„ZnejƒZd5Z d5Z!d5Z"d5Z#d6Z$e$Z%d7Z&d8Z'e'Z(d9Z)d:Z*d;Z+i de$6de&6de'6d e)6de*6de+6e$d6e&d6e'd6e'd6e)d 6e*d6e+d6Z,d<„Z-d=„Z.d>„Z/e ræe j0ƒZ1ne Z1d?„Z2d@„Z3de4fdA„ƒYZ5dB„Z6d e4fdC„ƒYZ7e7ƒZ8de4fdD„ƒYZ9d
e4fdE„ƒYZ:dFe4fdG„ƒYZ;ej<ƒZ=gZ>dH„Z?dI„Z@d e;fdJ„ƒYZAdeAfdK„ƒYZBd    eBfdL„ƒYZCdMe4fdN„ƒYZDe aEdO„ZFdP„ZGdQe4fdR„ƒYZHde;fdS„ƒYZIdTeIfdU„ƒYZJeIaEde4fdV„ƒYZKeJe'ƒZLeLeI_LeHeIjLƒeI_MdWZNdX„ZOe dY„ZPdZ„ZQeQZRd[„ZSd\„ZTd]„ZUeUZVd^„ZWd_„ZXd`„ZYda„ZZe>db„Z[ddl\Z\e\j]e[ƒdeAfdc„ƒYZ^e a_e e dd„Z`de„ZadS(fsÂ
Logging package for Python. Based on PEP 282 and comments thereto in
comp.lang.python.
 
Copyright (C) 2001-2012 Vinay Sajip. All Rights Reserved.
 
To use, simply 'import logging' and log away!
iÿÿÿÿNt BASIC_FORMATtBufferingFormattertCRITICALtDEBUGtERRORtFATALt FileHandlertFiltert    FormattertHandlertINFOt    LogRecordtLoggert LoggerAdaptertNOTSETt NullHandlert StreamHandlertWARNtWARNINGt addLevelNamet basicConfigtcaptureWarningstcriticaltdebugtdisableterrort    exceptiontfatalt getLevelNamet    getLoggertgetLoggerClasstinfotlogt makeLogRecordtsetLoggerClasstwarntwarnings&Vinay Sajip <vinay_sajip@red-dove.com>t
productions0.5.1.2s07 February 2010tfrozenslogging%s__init__%siüÿÿÿs.pycs.pyos.pycCs)y
t‚WntjƒdjjSXdS(s5Return the frame object for the caller's stack frame.iN(t    Exceptiontsystexc_infottb_frametf_back(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyt currentframeJs
t    _getframecCs tjdƒS(Ni(R(R-(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyt<lambda>Qsii2i(iii
icCstj|d|ƒS(s
    Return the textual representation of logging level 'level'.
 
    If the level is one of the predefined levels (CRITICAL, ERROR, WARNING,
    INFO, DEBUG) then you get the corresponding string. If you have
    associated levels with names using addLevelName then the name you have
    associated with 'level' is returned.
 
    If a numeric value corresponding to one of the defined levels is passed
    in, the corresponding string representation is returned.
 
    Otherwise, the string "Level %s" % level is returned.
    sLevel %s(t _levelNamestget(tlevel((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR™scCs.tƒz|t|<|t|<WdtƒXdS(sy
    Associate 'levelName' with 'level'.
 
    This is used when converting levels to text during message formatting.
    N(t _acquireLockR/t _releaseLock(R1t    levelName((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR©s
 
cCspt|ttfƒr|}nNt|ƒ|kr\|tkrOtd|ƒ‚nt|}ntd|ƒ‚|S(NsUnknown level: %rs*Level not an integer or a valid string: %r(t
isinstancetinttlongtstrR/t
ValueErrort    TypeError(R1trv((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyt _checkLevel¶s      cCstrtjƒndS(s€
    Acquire the module-level lock for serializing access to shared data.
 
    This should be released with _releaseLock().
    N(t_locktacquire(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR2ÒscCstrtjƒndS(sK
    Release the module-level lock acquired by calling _acquireLock().
    N(R=trelease(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR3ÛscBs,eZdZdd„Zd„Zd„ZRS(s
    A LogRecord instance represents an event being logged.
 
    LogRecord instances are created every time something is logged. They
    contain all the information pertinent to the event being logged. The
    main information passed in is in msg and args, which are combined
    using str(msg) % args to create the message field of the record. The
    record also includes information such as when the record was created,
    the source line where the logging call was made, and any exception
    information to be logged.
    c    
Cs"tjƒ}    ||_||_|r`t|ƒdkr`t|dtƒr`|dr`|d}n||_t|ƒ|_||_    ||_
y5t j j |ƒ|_t j j|jƒd|_Wn,tttfk
rí||_d|_nX||_d|_||_||_|    |_|    t|    ƒd|_|jtd|_trvtrvtj ƒ|_t!j"ƒj|_#nd|_d|_#t$sšd|_%nTd|_%t&j'j(dƒ}
|
dk    rîy|
j)ƒj|_%Wqît*k
rêqîXnt+rt,t dƒrt j-ƒ|_.n    d|_.dS(    sK
        Initialize a logging record with interesting information.
        iisUnknown moduleièt MainProcesstmultiprocessingtgetpidN(/ttimetnametmsgtlenR5tdicttargsRt    levelnametlevelnotpathnametostpathtbasenametfilenametsplitexttmoduleR:R9tAttributeErrorR)tNonetexc_texttlinenotfuncNametcreatedR7tmsecst
_startTimetrelativeCreatedt
logThreadstthreadt    get_identt    threadingtcurrent_threadt
threadNametlogMultiprocessingt processNameR(tmodulesR0tcurrent_processt StandardErrort logProcessesthasattrRBtprocess( tselfRDR1RKRURERHR)tfunctcttmp((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyt__init__òsN         5                                                       cCs&d|j|j|j|j|jfS(Ns!<LogRecord: %s, %s, %s, %s, "%s">(RDRJRKRURE(Ri((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyt__str__3scCs€tst|jƒ}nK|j}t|tƒscyt|jƒ}Wqctk
r_|j}qcXn|jr|||j}n|S(s«
        Return the message for this LogRecord.
 
        Return the message for this LogRecord after merging any user-supplied
        arguments with the message.
        (t_unicodeR8RER5t
basestringt UnicodeErrorRH(RiRE((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyt
getMessage7s         N(t__name__t
__module__t__doc__RSRmRnRr(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR æs  @    c    Cs5tddddddddƒ}|jj|ƒ|S(sô
    Make a LogRecord whose attributes are defined by the specified dictionary,
    This function is useful for converting a logging event received over
    a socket connection (which is sent as a dictionary) into a LogRecord
    instance.
    tiN((R RSt__dict__tupdate(RGR;((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR!Ks!cBsMeZdZejZddd„Zdd„Zd„Z    d„Z
d„Z RS(s©
    Formatter instances are used to convert a LogRecord to text.
 
    Formatters need to know how a LogRecord is constructed. They are
    responsible for converting a LogRecord to (usually) a string which can
    be interpreted by either a human or an external system. The base Formatter
    allows a formatting string to be specified. If none is supplied, the
    default value of "%s(message)\n" is used.
 
    The Formatter can be initialized with a format string which makes use of
    knowledge of the LogRecord attributes - e.g. the default value mentioned
    above makes use of the fact that the user's message and arguments are pre-
    formatted into a LogRecord's message attribute. Currently, the useful
    attributes in a LogRecord are described by:
 
    %(name)s            Name of the logger (logging channel)
    %(levelno)s         Numeric logging level for the message (DEBUG, INFO,
                        WARNING, ERROR, CRITICAL)
    %(levelname)s       Text logging level for the message ("DEBUG", "INFO",
                        "WARNING", "ERROR", "CRITICAL")
    %(pathname)s        Full pathname of the source file where the logging
                        call was issued (if available)
    %(filename)s        Filename portion of pathname
    %(module)s          Module (name portion of filename)
    %(lineno)d          Source line number where the logging call was issued
                        (if available)
    %(funcName)s        Function name
    %(created)f         Time when the LogRecord was created (time.time()
                        return value)
    %(asctime)s         Textual time when the LogRecord was created
    %(msecs)d           Millisecond portion of the creation time
    %(relativeCreated)d Time in milliseconds when the LogRecord was created,
                        relative to the time the logging module was loaded
                        (typically at application startup time)
    %(thread)d          Thread ID (if available)
    %(threadName)s      Thread name (if available)
    %(process)d         Process ID (if available)
    %(message)s         The result of record.getMessage(), computed just as
                        the record is emitted
    cCs(|r||_n    d|_||_dS(s8
        Initialize the formatter with specified format strings.
 
        Initialize the formatter either with the specified format string, or a
        default as described above. Allow for specialized date formatting with
        the optional datefmt argument (if omitted, you get the ISO8601 format).
        s %(message)sN(t_fmttdatefmt(RitfmtRz((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRm†s     cCsV|j|jƒ}|r-tj||ƒ}n%tjd|ƒ}d||jf}|S(s
        Return the creation time of the specified LogRecord as formatted text.
 
        This method should be called from format() by a formatter which
        wants to make use of a formatted time. This method can be overridden
        in formatters to provide for any specific requirement, but the
        basic behaviour is as follows: if datefmt (a string) is specified,
        it is used with time.strftime() to format the creation time of the
        record. Otherwise, the ISO8601 format is used. The resulting
        string is returned. This function uses a user-configurable function
        to convert the creation time to a tuple. By default, time.localtime()
        is used; to change this for a particular formatter instance, set the
        'converter' attribute to a function with the same signature as
        time.localtime() or time.gmtime(). To change it for all formatters,
        for example if you want all logging times to be shown in GMT,
        set the 'converter' attribute in the Formatter class.
        s%Y-%m-%d %H:%M:%Ss%s,%03d(t    converterRWRCtstrftimeRX(RitrecordRzRktstt((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyt
formatTime”s cCshtjƒ}tj|d|d|dd|ƒ|jƒ}|jƒ|ddkrd|d }n|S(s§
        Format and return the specified exception information as a string.
 
        This default implementation just uses
        traceback.print_exception()
        iiiiÿÿÿÿs
N(t    cStringIOtStringIOt    tracebacktprint_exceptionRStgetvaluetclose(RiteitsioR((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pytformatException®s % 
 cCs|jjdƒdkS(sK
        Check if the format uses the creation time of the record.
        s
%(asctime)i(Rytfind(Ri((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pytusesTime½scCsä|jƒ|_|jƒr6|j||jƒ|_n|j|j}|jrs|j    ss|j
|jƒ|_    qsn|j    rà|ddkr™|d}ny||j    }Wqàt k
rÜ||j    j t jƒdƒ}qàXn|S(sz
        Format the specified record as text.
 
        The record's attribute dictionary is used as the operand to a
        string formatting operation which yields the returned string.
        Before formatting the dictionary, a couple of preparatory steps
        are carried out. The message attribute of the record is computed
        using LogRecord.getMessage(). If the formatting string uses the
        time (as determined by a call to usesTime(), formatTime() is
        called to format the event time. If there is exception information,
        it is formatted using formatException() and appended to the message.
        iÿÿÿÿs
treplace(RrtmessageRŒRRztasctimeRyRwR)RTRŠRqtdecodeR(tgetfilesystemencoding(RiR~R((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pytformatÃs                 N( RsRtRuRCt    localtimeR|RSRmRRŠRŒR’(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRZs(             cBs5eZdZdd„Zd„Zd„Zd„ZRS(sB
    A formatter suitable for formatting a number of records.
    cCs|r||_n    t|_dS(sm
        Optionally specify a formatter which will be used to format each
        individual record.
        N(tlinefmtt_defaultFormatter(RiR”((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRmòs cCsdS(sE
        Return the header string for the specified records.
        Rv((Ritrecords((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyt formatHeaderüscCsdS(sE
        Return the footer string for the specified records.
        Rv((RiR–((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyt formatFooterscCsld}t|ƒdkrh||j|ƒ}x$|D]}||jj|ƒ}q2W||j|ƒ}n|S(sQ
        Format the specified records and return the result as a string.
        Rvi(RFR—R”R’R˜(RiR–R;R~((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR’s N(RsRtRuRSRmR—R˜R’(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRîs
 
       cBs#eZdZdd„Zd„ZRS(sö
    Filter instances are used to perform arbitrary filtering of LogRecords.
 
    Loggers and Handlers can optionally use Filter instances to filter
    records as desired. The base filter class only allows events which are
    below a certain point in the logger hierarchy. For example, a filter
    initialized with "A.B" will allow events logged by loggers "A.B",
    "A.B.C", "A.B.C.D", "A.B.D" etc. but not "A.BB", "B.A.B" etc. If
    initialized with the empty string, all events are passed.
    RvcCs||_t|ƒ|_dS(sæ
        Initialize a filter.
 
        Initialize with the name of the logger which, together with its
        children, will have its events allowed through the filter. If no
        name is specified, allow every event.
        N(RDRFtnlen(RiRD((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRm#s    cCse|jdkrdS|j|jkr)dS|jj|jd|jƒdkrQdS|j|jdkS(sÚ
        Determine if the specified record is to be logged.
 
        Is the specified record to be logged? Returns 0 for no, nonzero for
        yes. If deemed appropriate, the record may be modified in-place.
        iit.(R™RDR‹(RiR~((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pytfilter.s$(RsRtRuRmR›(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRs
 tFilterercBs2eZdZd„Zd„Zd„Zd„ZRS(s[
    A base class for loggers and handlers which allows them to share
    common code.
    cCs g|_dS(sE
        Initialize the list of filters to be an empty list.
        N(tfilters(Ri((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRmBscCs&||jkr"|jj|ƒndS(s;
        Add the specified filter to this handler.
        N(Rtappend(RiR›((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyt    addFilterHscCs&||jkr"|jj|ƒndS(s@
        Remove the specified filter from this handler.
        N(Rtremove(RiR›((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyt removeFilterOscCs7d}x*|jD]}|j|ƒsd}PqqW|S(s
        Determine if a record is loggable by consulting all the filters.
 
        The default is to allow the record to be logged; any filter can veto
        this and the record is then dropped. Returns a zero value if a record
        is to be dropped, else non-zero.
        ii(RR›(RiR~R;tf((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR›Vs (RsRtRuRmRŸR¡R›(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRœ=s
            cCs]tdk    rYtdk    rYtdk    rYtƒz |tkrJtj|ƒnWdtƒXndS(sD
    Remove a handler reference from the internal cleanup list.
    N(R2RSt _handlerListR3R (twr((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyt_removeHandlerRefls  cCs3tƒztjtj|tƒƒWdtƒXdS(sL
    Add a handler to the internal cleanup list using a weak reference.
    N(R2R£RžtweakreftrefR¥R3(thandler((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyt_addHandlerRef|scBsžeZdZed„Zd„Zd„ZeeeƒZd„Z    d„Z
d„Z d„Z d„Z d    „Zd
„Zd „Zd „Zd „Zd„ZRS(sq
    Handler instances dispatch logging events to specific destinations.
 
    The base handler class. Acts as a placeholder which defines the Handler
    interface. Handlers can optionally use Formatter instances to format
    records as desired. By default, no formatter is specified; in this case,
    the 'raw' message as determined by record.message is logged.
    cCsFtj|ƒd|_t|ƒ|_d|_t|ƒ|jƒdS(sz
        Initializes the instance - basically setting the formatter to None
        and the filter list to empty.
        N(    RœRmRSt_nameR<R1t    formatterR©t
createLock(RiR1((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRms          
cCs|jS(N(Rª(Ri((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pytget_nameœscCsRtƒz<|jtkr&t|j=n||_|rB|t|<nWdtƒXdS(N(R2Rªt    _handlersR3(RiRD((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pytset_nameŸs     cCs%trtjƒ|_n    d|_dS(sU
        Acquire a thread lock for serializing access to the underlying I/O.
        N(R\R^tRLocktlockRS(Ri((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR¬¬scCs|jr|jjƒndS(s.
        Acquire the I/O thread lock.
        N(R±R>(Ri((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR>µs    cCs|jr|jjƒndS(s.
        Release the I/O thread lock.
        N(R±R?(Ri((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR?¼s    cCst|ƒ|_dS(s8
        Set the logging level of this handler.
        N(R<R1(RiR1((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pytsetLevelÃscCs(|jr|j}nt}|j|ƒS(s“
        Format the specified record.
 
        If a formatter is set, use it. Otherwise, use the default formatter
        for the module.
        (R«R•R’(RiR~R{((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR’És     cCstdƒ‚dS(sÃ
        Do whatever it takes to actually log the specified logging record.
 
        This version is intended to be implemented by subclasses and so
        raises a NotImplementedError.
        s.emit must be implemented by Handler subclassesN(tNotImplementedError(RiR~((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pytemitÖscCsE|j|ƒ}|rA|jƒz|j|ƒWd|jƒXn|S(s<
        Conditionally emit the specified logging record.
 
        Emission depends on filters which may have been added to the handler.
        Wrap the actual emission of the record with acquisition/release of
        the I/O thread lock. Returns whether the filter passed the record for
        emission.
        N(R›R>R´R?(RiR~R;((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pythandleàs    
cCs ||_dS(s5
        Set the formatter for this handler.
        N(R«(RiR{((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyt setFormatteròscCsdS(s™
        Ensure all logging output has been flushed.
 
        This version does nothing and is intended to be implemented by
        subclasses.
        N((Ri((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pytflushøscCs?tƒz)|jr/|jtkr/t|j=nWdtƒXdS(s%
        Tidy up any resources used by the handler.
 
        This version removes the handler from an internal map of handlers,
        _handlers, which is used for handler lookup by name. Subclasses
        should ensure that this gets called from overridden close()
        methods.
        N(R2RªR®R3(Ri((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR‡s
 
cCstr‰tjr‰tjƒ}zdyLtj|d|d|ddtjƒtjjd|j|j    fƒWnt
k
r}nXWd~XndS(sD
        Handle errors which occur during an emit() call.
 
        This method should be called from handlers when an exception is
        encountered during an emit() call. If raiseExceptions is false,
        exceptions get silently ignored. This is what is mostly wanted
        for a logging system - most users will not care about errors in
        the logging system, they are more interested in application errors.
        You could, however, replace this with a custom handler if you wish.
        The record which was being processed is passed in to this method.
        iiisLogged from file %s, line %s
N( traiseExceptionsR(tstderrR)R„R…RStwriteRORUtIOError(RiR~Rˆ((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyt handleErrors     (RsRtRuRRmR­R¯tpropertyRDR¬R>R?R²R’R´RµR¶R·R‡R¼(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR    †s                                      
                   cBs,eZdZdd„Zd„Zd„ZRS(s¾
    A handler class which writes logging records, appropriately formatted,
    to a stream. Note that this class does not close the stream, as
    sys.stdout or sys.stderr may be used.
    cCs2tj|ƒ|dkr%tj}n||_dS(sb
        Initialize the handler.
 
        If stream is not specified, sys.stderr is used.
        N(R    RmRSR(R¹tstream(RiR¾((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRm1s   cCsK|jƒz/|jr8t|jdƒr8|jjƒnWd|jƒXdS(s%
        Flushes the stream.
        R·N(R>R¾RgR·R?(Ri((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR·<s
 
cCs9y|j|ƒ}|j}d}ts;|j||ƒn¿y‘t|tƒrºt|ddƒrº|j|j    ƒ}y|j||ƒWqËt
k
r¶|j||j |j    ƒƒqËXn|j||ƒWn+t k
rù|j||j dƒƒnX|j ƒWn-ttfk
r!‚n|j|ƒnXdS(s«
        Emit a record.
 
        If a formatter is specified, it is used to format the record.
        The record is then written to the stream with a trailing newline.  If
        exception information is present, it is formatted using
        traceback.print_exception and appended to the stream.  If the stream
        has an 'encoding' attribute, it is used to determine how to do the
        output to the stream.
        s%s
tencodingsUTF-8N(R’R¾RoRºR5tunicodetgetattrRSRR¿tUnicodeEncodeErrortencodeRqR·tKeyboardInterruptt
SystemExitR¼(RiR~RER¾tfstufs((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR´Gs,      $ N(RsRtRuRSRmR·R´(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR*s     cBs;eZdZdddd„Zd„Zd„Zd„ZRS(sO
    A handler class which writes formatted logging records to disk files.
    taicCsutdkrd}ntjj|ƒ|_||_||_|r[tj    |ƒd|_
nt j    ||j ƒƒdS(sO
        Open the specified file and use it as the stream for logging.
        N( tcodecsRSRLRMtabspatht baseFilenametmodeR¿R    RmR¾Rt_open(RiRORÌR¿tdelay((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRmus               cCsn|jƒzR|jr[|jƒt|jdƒrB|jjƒntj|ƒd|_nWd|jƒXdS(s$
        Closes the stream.
        R‡N(R>R¾R·RgR‡RRSR?(Ri((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR‡ˆs
    
 cCsI|jdkr't|j|jƒ}ntj|j|j|jƒ}|S(sx
        Open the current base file with the (original) mode and encoding.
        Return the resulting stream.
        N(R¿RStopenRËRÌRÉ(RiR¾((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR͗scCs5|jdkr!|jƒ|_ntj||ƒdS(s®
        Emit a record.
 
        If the stream was not opened because 'delay' was specified in the
        constructor, open it before calling the superclass's emit.
        N(R¾RSRÍRR´(RiR~((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR´¢sN(RsRtRuRSRmR‡RÍR´(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRqs
         t PlaceHoldercBs eZdZd„Zd„ZRS(sã
    PlaceHolder instances are used in the Manager logger hierarchy to take
    the place of nodes for which no loggers have been defined. This class is
    intended for internal use only and not as part of the public API.
    cCsid|6|_dS(sY
        Initialize with the specified logger being a child of this placeholder.
        N(RSt    loggerMap(Ritalogger((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRm·scCs#||jkrd|j|<ndS(sJ
        Add the specified logger as a child of this placeholder.
        N(RÑRS(RiRÒ((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRž¾s(RsRtRuRmRž(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRбs    cCs>|tkr4t|tƒs4td|jƒ‚q4n|adS(sÇ
    Set the class to be used when instantiating a logger. The class should
    define __init__() such that only a name argument is required, and the
    __init__() should call Logger.__init__()
    s(logger not derived from logging.Logger: N(R t
issubclassR:Rst _loggerClass(tklass((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR"Ìs
 cCstS(sB
    Return the class to be used when instantiating a logger.
    (RÔ(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRÙstManagercBs;eZdZd„Zd„Zd„Zd„Zd„ZRS(st
    There is [under normal circumstances] just one Manager instance, which
    holds the hierarchy of loggers.
    cCs1||_d|_d|_i|_d|_dS(sT
        Initialize the manager with the root node of the logger hierarchy.
        iN(trootRtemittedNoHandlerWarningt
loggerDictRSt loggerClass(Ritrootnode((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRmås
                cCsd}t|tƒs$tdƒ‚nt|tƒrE|jdƒ}ntƒz»||jkrÎ|j|}t|tƒr|}|j    pŒt
|ƒ}||_ ||j|<|j ||ƒ|j |ƒqn8|j    pÚt
|ƒ}||_ ||j|<|j |ƒWdtƒX|S(sá
        Get a logger with the specified name (channel name), creating it
        if it doesn't yet exist. This name is a dot-separated hierarchical
        name, such as "a", "a.b", "a.b.c" or similar.
 
        If a PlaceHolder existed for the specified name [i.e. the logger
        didn't exist but a child of it did], replace it with the created
        logger and fix up the parent/child references which pointed to the
        placeholder to now point to the logger.
        s'A logger name must be string or Unicodesutf-8N(RSR5RpR:RÀRÃR2RÙRÐRÚRÔtmanagert_fixupChildrent _fixupParentsR3(RiRDR;tph((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRïs,            cCsA|tkr4t|tƒs4td|jƒ‚q4n||_dS(sY
        Set the class to be used when instantiating a logger with this Manager.
        s(logger not derived from logging.Logger: N(R RÓR:RsRÚ(RiRÕ((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR"s
 cCsæ|j}|jdƒ}d}x¦|dkrÆ| rÆ|| }||jkrct|ƒ|j|<nG|j|}t|tƒrˆ|}n"t|tƒst‚|j|ƒ|jdd|dƒ}q!W|sÙ|j    }n||_
dS(s™
        Ensure that there are either loggers or placeholders all the way
        from the specified logger to the root of the logger hierarchy.
        RšiiN( RDtrfindRSRÙRÐR5R tAssertionErrorRžR×tparent(RiRÒRDtiR;tsubstrtobj((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRÞs     
       cCsa|j}t|ƒ}xE|jjƒD]4}|jj| |kr%|j|_||_q%q%WdS(sk
        Ensure that children of the placeholder ph are connected to the
        specified logger.
        N(RDRFRÑtkeysRâ(RiRßRÒRDtnamelentc((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRÝ5s       (RsRtRuRmRR"RÞRÝ(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRÖàs     
   $    
   cBsÔeZdZed„Zd„Zd„Zd„Zd„ZeZ    d„Z
d„Z d„Z e Z d    „Zd
„Zddd „Zddd „Zd „Zd„Zd„Zd„Zd„Zd„Zd„ZRS(sr
    Instances of the Logger class represent a single logging channel. A
    "logging channel" indicates an area of an application. Exactly how an
    "area" is defined is up to the application developer. Since an
    application can have any number of areas, logging channels are identified
    by a unique string. Application areas can be nested (e.g. an area
    of "input processing" might include sub-areas "read CSV files", "read
    XLS files" and "read Gnumeric files"). To cater for this natural nesting,
    channel names are organized into a namespace hierarchy where levels are
    separated by periods, much like the Java or Python package namespace. So
    in the instance given above, channel names might be "input" for the upper
    level, and "input.csv", "input.xls" and "input.gnu" for the sub-levels.
    There is no arbitrary limit to the depth of nesting.
    cCsMtj|ƒ||_t|ƒ|_d|_d|_g|_d|_    dS(sJ
        Initialize the logger with a name and an optional level.
        iiN(
RœRmRDR<R1RSRât    propagatethandlerstdisabled(RiRDR1((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRmUs                 cCst|ƒ|_dS(s7
        Set the logging level of this logger.
        N(R<R1(RiR1((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR²ascOs,|jtƒr(|jt|||ndS(sð
        Log 'msg % args' with severity 'DEBUG'.
 
        To pass exception information, use the keyword argument exc_info with
        a true value, e.g.
 
        logger.debug("Houston, we have a %s", "thorny problem", exc_info=1)
        N(t isEnabledForRt_log(RiRERHtkwargs((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRgs    cOs,|jtƒr(|jt|||ndS(só
        Log 'msg % args' with severity 'INFO'.
 
        To pass exception information, use the keyword argument exc_info with
        a true value, e.g.
 
        logger.info("Houston, we have a %s", "interesting problem", exc_info=1)
        N(RìR
Rí(RiRERHRî((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRss    cOs,|jtƒr(|jt|||ndS(sö
        Log 'msg % args' with severity 'WARNING'.
 
        To pass exception information, use the keyword argument exc_info with
        a true value, e.g.
 
        logger.warning("Houston, we have a %s", "bit of a problem", exc_info=1)
        N(RìRRí(RiRERHRî((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR$s    cOs,|jtƒr(|jt|||ndS(sï
        Log 'msg % args' with severity 'ERROR'.
 
        To pass exception information, use the keyword argument exc_info with
        a true value, e.g.
 
        logger.error("Houston, we have a %s", "major problem", exc_info=1)
        N(RìRRí(RiRERHRî((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRs    cOs!d|d<|j|||ŽdS(sU
        Convenience method for logging an ERROR with exception information.
        iR)N(R(RiRERHRî((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR™s
cOs,|jtƒr(|jt|||ndS(sö
        Log 'msg % args' with severity 'CRITICAL'.
 
        To pass exception information, use the keyword argument exc_info with
        a true value, e.g.
 
        logger.critical("Houston, we have a %s", "major disaster", exc_info=1)
        N(RìRRí(RiRERHRî((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR s    cOsWt|tƒs+tr$tdƒ‚q+dSn|j|ƒrS|j||||ndS(sü
        Log 'msg % args' with the integer severity 'level'.
 
        To pass exception information, use the keyword argument exc_info with
        a true value, e.g.
 
        logger.log(level, "We have a %s", "mysterious problem", exc_info=1)
        slevel must be an integerN(R5R6R¸R:RìRí(RiR1RERHRî((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR ®s    cCs“tƒ}|dk    r!|j}nd}xet|dƒrŽ|j}tjj|jƒ}|t    krr|j}q*n|j|j
|j f}Pq*W|S(s…
        Find the stack frame of the caller so that we can note the source
        file name, line number and function name.
        s(unknown file)is(unknown function)tf_codeN(s(unknown file)is(unknown function)( R,RSR+RgRïRLRMtnormcaset co_filenamet_srcfiletf_linenotco_name(RiR¢R;tcoRO((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyt
findCaller¿s               c
   Cs„t||||||||ƒ}
|    dk    r€xP|    D]E} | dksU| |
jkrhtd| ƒ‚n|    | |
j| <q4Wn|
S(sr
        A factory method which can be overridden in subclasses to create
        specialized LogRecords.
        RŽRs$Attempt to overwrite %r in LogRecordN(smessagesasctime(R RSRwtKeyError( RiRDR1tfntlnoRERHR)RjtextraR;tkey((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyt
makeRecordÔs!  c
 
Cs¶trEy|jƒ\}}}WqTtk
rAd\}}}qTXnd\}}}|r{t|tƒs{tjƒ}q{n|j|j||||||||ƒ    }    |j    |    ƒdS(s’
        Low-level logging routine which creates a LogRecord and then calls
        all the handlers of this logger to handle the record.
        s(unknown file)is(unknown function)N(s(unknown file)is(unknown function)(s(unknown file)is(unknown function)(
RòRöR9R5ttupleR(R)RüRDRµ(
RiR1RERHR)RúRøRùRjR~((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRíás *cCs-|j r)|j|ƒr)|j|ƒndS(sÕ
        Call the handlers for the specified record.
 
        This method is used for unpickled records received from a socket, as
        well as those created locally. Logger-level filtering is applied.
        N(RëR›t callHandlers(RiR~((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRµöscCs<tƒz&||jkr,|jj|ƒnWdtƒXdS(s;
        Add the specified handler to this logger.
        N(R2RêRžR3(Rithdlr((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyt
addHandlers
cCs<tƒz&||jkr,|jj|ƒnWdtƒXdS(s@
        Remove the specified handler from this logger.
        N(R2RêR R3(RiRÿ((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyt removeHandler s
cCs½|}d}xe|rsx=|jD]2}|d}|j|jkr|j|ƒqqW|jsgd}q|j}qW|dkr¹tr¹|jj     r¹t
j j d|j ƒd|j_    ndS(sœ
        Pass a record to all relevant handlers.
 
        Loop through all handlers for this logger and its parents in the
        logger hierarchy. If no handler was found, output a one-off error
        message to sys.stderr. Stop searching up the hierarchy whenever a
        logger with the "propagate" attribute set to zero is found - that
        will be the last logger whose handlers are called.
        iis+No handlers could be found for logger "%s"
N(RêRJR1RµRéRSRâR¸RÜRØR(R¹RºRD(RiR~RètfoundRÿ((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRþs
    
           cCs0|}x#|r+|jr|jS|j}q    WtS(sÏ
        Get the effective level for this logger.
 
        Loop through this logger and its parents in the logger hierarchy,
        looking for a non-zero logging level. Return the first one found.
        (R1RâR(Ritlogger((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pytgetEffectiveLevel0s          cCs&|jj|krdS||jƒkS(s;
        Is this logger enabled for level 'level'?
        i(RÜRR(RiR1((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRì>scCs:|j|k    r*dj|j|fƒ}n|jj|ƒS(sb
        Get a logger which is a descendant to this one.
 
        This is a convenience method, such that
 
        logging.getLogger('abc').getChild('def.ghi')
 
        is the same as
 
        logging.getLogger('abc.def.ghi')
 
        It's useful, for example, when the parent logger is named using
        __name__ rather than a literal string.
        Rš(R×tjoinRDRÜR(Ritsuffix((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pytgetChildFsN(RsRtRuRRmR²RRR$R#RRRRR RöRSRüRíRµRRRþRRìR(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR Fs,                                           
                   t
RootLoggercBseZdZd„ZRS(sª
    A root logger is not that different to any other logger, except that
    it must have a logging level and there is only one instance of it in
    the hierarchy.
    cCstj|d|ƒdS(s=
        Initialize the logger with the name "root".
        R×N(R Rm(RiR1((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRm_s(RsRtRuRm(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRYscBsheZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z RS( so
    An adapter for loggers which makes it easier to specify contextual
    information in logging output.
    cCs||_||_dS(sx
        Initialize the adapter with a logger and a dict-like object which
        provides contextual information. This constructor signature allows
        easy stacking of LoggerAdapters, if so desired.
 
        You can effectively pass keyword arguments as shown in the
        following example:
 
        adapter = LoggerAdapter(someLogger, dict(p1=v1, p2="v2"))
        N(RRú(RiRRú((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRmms    cCs|j|d<||fS(s¢
        Process the logging message and keyword arguments passed in to
        a logging call to insert contextual information. You can either
        manipulate the message itself, the keyword args or both. Return
        the message and kwargs modified (or not) to suit your needs.
 
        Normally, you'll only need to override this one method in a
        LoggerAdapter subclass for your specific needs.
        Rú(Rú(RiRERî((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRh{s
cOs2|j||ƒ\}}|jj|||ŽdS(s‰
        Delegate a debug call to the underlying logger, after adding
        contextual information from this adapter instance.
        N(RhRR(RiRERHRî((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRˆscOs2|j||ƒ\}}|jj|||ŽdS(s‰
        Delegate an info call to the underlying logger, after adding
        contextual information from this adapter instance.
        N(RhRR(RiRERHRî((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRscOs2|j||ƒ\}}|jj|||ŽdS(s‹
        Delegate a warning call to the underlying logger, after adding
        contextual information from this adapter instance.
        N(RhRR$(RiRERHRî((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR$˜scOs2|j||ƒ\}}|jj|||ŽdS(sŠ
        Delegate an error call to the underlying logger, after adding
        contextual information from this adapter instance.
        N(RhRR(RiRERHRî((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR scOs<|j||ƒ\}}d|d<|jj|||ŽdS(sŽ
        Delegate an exception call to the underlying logger, after adding
        contextual information from this adapter instance.
        iR)N(RhRR(RiRERHRî((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR¨s
cOs2|j||ƒ\}}|jj|||ŽdS(sŒ
        Delegate a critical call to the underlying logger, after adding
        contextual information from this adapter instance.
        N(RhRR(RiRERHRî((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR±scOs5|j||ƒ\}}|jj||||ŽdS(s‡
        Delegate a log call to the underlying logger, after adding
        contextual information from this adapter instance.
        N(RhRR (RiR1RERHRî((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR ¹scCs|jj|ƒS(sR
        See if the underlying logger is enabled for the specified level.
        (RRì(RiR1((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRìÁs( RsRtRuRmRhRRR$RRRR Rì(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR gs                                        s"%(levelname)s:%(name)s:%(message)sc    Ksþtƒzèttjƒdkrî|jdƒ}|rX|jddƒ}t||ƒ}n|jdƒ}t|ƒ}|jdtƒ}|jdd    ƒ}t    ||ƒ}|j
|ƒtj |ƒ|jdƒ}|d    k    rîtj |ƒqînWd    t ƒXd    S(
sý
    Do basic configuration for the logging system.
 
    This function does nothing if the root logger already has handlers
    configured. It is a convenience method intended for use by simple scripts
    to do one-shot configuration of the logging package.
 
    The default behaviour is to create a StreamHandler which writes to
    sys.stderr, set a formatter using the BASIC_FORMAT format string, and
    add the handler to the root logger.
 
    A number of optional keyword arguments may be specified, which can alter
    the default behaviour.
 
    filename  Specifies that a FileHandler be created, using the specified
              filename, rather than a StreamHandler.
    filemode  Specifies the mode to open the file, if filename is specified
              (if filemode is unspecified, it defaults to 'a').
    format    Use the specified format string for the handler.
    datefmt   Use the specified date/time format.
    level     Set the root logger level to the specified level.
    stream    Use the specified stream to initialize the StreamHandler. Note
              that this argument is incompatible with 'filename' - if both
              are present, 'stream' is ignored.
 
    Note that you could specify a stream created using open(filename, mode)
    rather than passing the filename and mode in. However, it should be
    remembered that StreamHandler does not close its stream (since it may be
    using sys.stdout or sys.stderr), whereas FileHandler closes its stream
    when the handler is closed.
    iROtfilemodeRÈR¾R’RzR1N(R2RFR×RêR0RRRRSRR¶RR²R3(    RîRORÌRÿR¾RÆtdfsR{R1((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRÑs$"    cCs|rtjj|ƒStSdS(s‚
    Return a logger with the specified name, creating it if necessary.
 
    If no name is specified, return the root logger.
    N(R RÜRR×(RD((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR scOs6ttjƒdkrtƒntj|||ŽdS(sD
    Log a message with severity 'CRITICAL' on the root logger.
    iN(RFR×RêRR(RERHRî((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR!s
cOs6ttjƒdkrtƒntj|||ŽdS(sA
    Log a message with severity 'ERROR' on the root logger.
    iN(RFR×RêRR(RERHRî((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR+s
cOsd|d<t|||ŽdS(sa
    Log a message with severity 'ERROR' on the root logger,
    with exception information.
    iR)N(R(RERHRî((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR3s
cOs6ttjƒdkrtƒntj|||ŽdS(sC
    Log a message with severity 'WARNING' on the root logger.
    iN(RFR×RêRR$(RERHRî((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR$;s
cOs6ttjƒdkrtƒntj|||ŽdS(s@
    Log a message with severity 'INFO' on the root logger.
    iN(RFR×RêRR(RERHRî((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyREs
cOs6ttjƒdkrtƒntj|||ŽdS(sA
    Log a message with severity 'DEBUG' on the root logger.
    iN(RFR×RêRR(RERHRî((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRMs
cOs9ttjƒdkrtƒntj||||ŽdS(sP
    Log 'msg % args' with the integer severity 'level' on the root logger.
    iN(RFR×RêRR (R1RERHRî((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR Us
cCs|tj_dS(sB
    Disable all logging calls of severity 'level' and below.
    N(R×RÜR(R1((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR]scCs–xt|ƒD]€}yd|ƒ}|rwz@y"|jƒ|jƒ|jƒWnttfk
rdnXWd|jƒXnWqtrŽ‚qŽqXqWdS(sƒ
    Perform any cleanup actions in the logging system (e.g. flushing
    buffers).
 
    Should be called at application exit.
    N(treversedR>R·R‡R»R9R?R¸(t handlerListR¤th((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pytshutdowncs    
 
cBs)eZdZd„Zd„Zd„ZRS(sÙ
    This handler does nothing. It's intended to be used to avoid the
    "No handlers could be found for logger XXX" one-off warning. This is
    important for library code, which may contain code to log events. If a user
    of the library does not configure logging, the one-off warning might be
    produced; to avoid this, the library developer simply needs to instantiate
    a NullHandler and add it to the top-level logger of the library module or
    package.
    cCsdS(N((RiR~((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyRµ‘scCsdS(N((RiR~((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR´”scCs d|_dS(N(RSR±(Ri((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR¬—s(RsRtRuRµR´R¬(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR‡s            cCsŽ|dk    r7tdk    rŠt||||||ƒqŠnStj|||||ƒ}tdƒ}|jsz|jtƒƒn|jd|ƒdS(sˆ
    Implementation of showwarnings which redirects to logging, which will first
    check to see if the file parameter is None. If a file is specified, it will
    delegate to the original warnings implementation of showwarning. Otherwise,
    it will call warnings.formatwarning and will log the resulting string to a
    warnings logger named "py.warnings" with level logging.WARNING.
    s py.warningss%sN(    RSt_warnings_showwarningtwarningst formatwarningRRêRRR$(RŽtcategoryRORUtfiletlineRR((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyt _showwarningžs       cCsL|r*tdkrHtjatt_qHntdk    rHtt_dandS(s¿
    If capture is true, redirect all warnings to the logging package.
    If capture is False, ensure that warnings are not redirected to logging
    but to their original destinations.
    N(RRSRt showwarningR(tcapture((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyR°s          (bRuR(RLRCR‚R„RR¦t__all__RÉt ImportErrorRSR\R^t
__author__t
__status__t __version__t__date__RÀtTrueRot    NameErrortFalseRgtsept__file__RòtlowerRMRðR,RYR¸R[RaRfRRRRRR
RRR/RRR<R°R=R2R3tobjectR R!RR•RRRœtWeakValueDictionaryR®R£R¥R©R    RRRÐRÔR"RRÖR RR R×RÜRRRRRRRR$R#RRR RRtatexittregisterRRRR(((sX/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/logging/__init__.pyt<module>sêT 
 
 
 
      
                         e    ’    *%,         
¤G@        fÿ `         <