PNG  IHDR* pHYs+ IDATx]n#; cdLb Ǚ[at¤_:uP}>!Usă cag޿ ֵNu`ݼTâabO7uL&y^wFٝA"l[|ŲHLN밪4*sG3|Dv}?+y߉{OuOAt4Jj.u]Gz*҉sP'VQKbA1u\`& Af;HWj hsO;ogTu uj7S3/QzUr&wS`M$X_L7r2;aE+ώ%vikDA:dR+%KzƉo>eOth$z%: :{WwaQ:wz%4foɹE[9<]#ERINƻv溂E%P1i01 |Jvҗ&{b?9g=^wζXn/lK::90KwrюO\!ջ3uzuGv^;騢wq<Iatv09:tt~hEG`v;3@MNZD.1]L:{ծI3`L(÷ba")Y.iljCɄae#I"1 `3*Bdz>j<fU40⨬%O$3cGt]j%Fߠ_twJ;ABU8vP3uEԑwQ V:h%))LfraqX-ۿX]v-\9I gl8tzX ]ecm)-cgʒ#Uw=Wlێn(0hPP/ӨtQ“&J35 $=]r1{tLuǮ*i0_;NƝ8;-vݏr8+U-kruȕYr0RnC]*ެ(M:]gE;{]tg(#ZJ9y>utRDRMdr9㪩̞zֹb<ģ&wzJM"iI( .ꮅX)Qw:9,i좜\Ԛi7&N0:asϓc];=ΗOӣ APqz93 y $)A*kVHZwBƺnWNaby>XMN*45~ղM6Nvm;A=jֲ.~1}(9`KJ/V F9[=`~[;sRuk]rєT!)iQO)Y$V ی ۤmzWz5IM Zb )ˆC`6 rRa}qNmUfDsWuˤV{ Pݝ'=Kֳbg,UҘVz2ﴻnjNgBb{? ߮tcsͻQuxVCIY۠:(V뺕 ٥2;t`@Fo{Z9`;]wMzU~%UA蛚dI vGq\r82iu +St`cR.6U/M9IENDB` REDROOM
PHP 5.6.40
Preview: log.py Size: 1.92 KB
/opt/alt/python-internal/lib64/python3.11/distutils/log.py

"""A simple log mechanism styled after PEP 282."""

# The class here is styled after PEP 282 so that it could later be
# replaced with a standard Python logging implementation.

DEBUG = 1
INFO = 2
WARN = 3
ERROR = 4
FATAL = 5

import sys

class Log:

    def __init__(self, threshold=WARN):
        self.threshold = threshold

    def _log(self, level, msg, args):
        if level not in (DEBUG, INFO, WARN, ERROR, FATAL):
            raise ValueError('%s wrong log level' % str(level))

        if level >= self.threshold:
            if args:
                msg = msg % args
            if level in (WARN, ERROR, FATAL):
                stream = sys.stderr
            else:
                stream = sys.stdout
            try:
                stream.write('%s\n' % msg)
            except UnicodeEncodeError:
                # emulate backslashreplace error handler
                encoding = stream.encoding
                msg = msg.encode(encoding, "backslashreplace").decode(encoding)
                stream.write('%s\n' % msg)
            stream.flush()

    def log(self, level, msg, *args):
        self._log(level, msg, args)

    def debug(self, msg, *args):
        self._log(DEBUG, msg, args)

    def info(self, msg, *args):
        self._log(INFO, msg, args)

    def warn(self, msg, *args):
        self._log(WARN, msg, args)

    def error(self, msg, *args):
        self._log(ERROR, msg, args)

    def fatal(self, msg, *args):
        self._log(FATAL, msg, args)

_global_log = Log()
log = _global_log.log
debug = _global_log.debug
info = _global_log.info
warn = _global_log.warn
error = _global_log.error
fatal = _global_log.fatal

def set_threshold(level):
    # return the old threshold for use from tests
    old = _global_log.threshold
    _global_log.threshold = level
    return old

def set_verbosity(v):
    if v <= 0:
        set_threshold(WARN)
    elif v == 1:
        set_threshold(INFO)
    elif v >= 2:
        set_threshold(DEBUG)

Directory Contents

Dirs: 2 × Files: 29

Name Size Perms Modified Actions
command DIR
- drwxr-xr-x 2025-08-04 23:01:17
Edit Download
- drwxr-xr-x 2025-08-04 23:01:17
Edit Download
8.37 KB lrw-r--r-- 2025-06-03 18:38:25
Edit Download
14.54 KB lrw-r--r-- 2025-06-03 18:38:25
Edit Download
46.31 KB lrw-r--r-- 2025-06-03 18:38:25
Edit Download
17.66 KB lrw-r--r-- 2025-06-03 18:38:25
Edit Download
4.83 KB lrw-r--r-- 2025-06-03 18:38:25
Edit Download
8.67 KB lrw-r--r-- 2025-06-03 18:38:25
Edit Download
16.00 KB lrw-r--r-- 2025-06-03 18:38:25
Edit Download
139 B lrw-r--r-- 2025-06-03 18:38:25
Edit Download
3.41 KB lrw-r--r-- 2025-06-03 18:38:25
Edit Download
7.60 KB lrw-r--r-- 2025-06-03 18:38:25
Edit Download
49.20 KB lrw-r--r-- 2025-06-03 18:38:25
Edit Download
3.49 KB lrw-r--r-- 2025-06-03 18:38:25
Edit Download
10.28 KB lrw-r--r-- 2025-06-03 18:38:25
Edit Download
17.37 KB lrw-r--r-- 2025-06-03 18:38:25
Edit Download
12.53 KB lrw-r--r-- 2025-06-03 18:38:25
Edit Download
7.96 KB lrw-r--r-- 2025-06-03 18:38:25
Edit Download
1.92 KB lrw-r--r-- 2025-06-03 18:38:25
Edit Download
29.74 KB lrw-r--r-- 2025-06-03 18:38:25
Edit Download
22.98 KB lrw-r--r-- 2025-06-03 18:38:25
Edit Download
244 B lrw-r--r-- 2025-06-03 18:38:25
Edit Download
4.55 KB lrw-r--r-- 2025-06-03 18:38:25
Edit Download
12.14 KB lrw-r--r-- 2025-06-03 18:38:25
Edit Download
12.19 KB lrw-r--r-- 2025-06-03 18:38:25
Edit Download
14.96 KB lrw-r--r-- 2025-07-23 09:44:15
Edit Download
20.54 KB lrw-r--r-- 2025-06-03 18:38:25
Edit Download
12.22 KB lrw-r--r-- 2025-06-03 18:38:25
Edit Download
5.01 KB lrw-r--r-- 2025-06-03 18:38:25
Edit Download
19.54 KB lrw-r--r-- 2025-06-03 18:38:25
Edit Download
541 B lrw-r--r-- 2025-06-03 18:38:25
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).
© 2026 REDROOM — Secure File Manager. All rights reserved. Built with ❤️ & Red Dark UI