GRAYBYTE WORDPRESS FILE MANAGER4857

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /usr/lib64/python3.6/distutils/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /usr/lib64/python3.6/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)

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 02 2025 13:48:21
root / root
0755
__pycache__
--
July 02 2025 13:48:21
root / root
0755
command
--
July 02 2025 13:48:21
root / root
0755
README
0.288 KB
December 23 2018 21:37:14
root / root
0644
__init__.py
0.23 KB
December 23 2018 21:37:14
root / root
0644
_msvccompiler.py
21.073 KB
December 23 2018 21:37:14
root / root
0644
archive_util.py
8.318 KB
December 23 2018 21:37:14
root / root
0644
bcppcompiler.py
14.585 KB
December 23 2018 21:37:14
root / root
0644
ccompiler.py
46.304 KB
December 23 2018 21:37:14
root / root
0644
cmd.py
18.681 KB
December 23 2018 21:37:14
root / root
0644
config.py
4.766 KB
December 23 2018 21:37:14
root / root
0644
core.py
8.668 KB
December 23 2018 21:37:14
root / root
0644
cygwinccompiler.py
16.089 KB
December 23 2018 21:37:14
root / root
0644
debug.py
0.136 KB
December 23 2018 21:37:14
root / root
0644
dep_util.py
3.409 KB
December 23 2018 21:37:14
root / root
0644
dir_util.py
7.596 KB
December 23 2018 21:37:14
root / root
0644
dist.py
48.525 KB
December 23 2018 21:37:14
root / root
0644
errors.py
3.493 KB
December 23 2018 21:37:14
root / root
0644
extension.py
10.269 KB
December 23 2018 21:37:14
root / root
0644
fancy_getopt.py
17.367 KB
December 23 2018 21:37:14
root / root
0644
file_util.py
7.957 KB
December 23 2018 21:37:14
root / root
0644
filelist.py
12.531 KB
December 23 2018 21:37:14
root / root
0644
log.py
1.923 KB
December 23 2018 21:37:14
root / root
0644
msvc9compiler.py
29.895 KB
December 23 2018 21:37:14
root / root
0644
msvccompiler.py
23.023 KB
December 23 2018 21:37:14
root / root
0644
spawn.py
7.253 KB
December 23 2018 21:37:14
root / root
0644
sysconfig.py
19.695 KB
July 01 2025 22:14:40
root / root
0644
text_file.py
12.19 KB
December 23 2018 21:37:14
root / root
0644
unixccompiler.py
14.633 KB
July 01 2025 22:09:53
root / root
0644
util.py
20.302 KB
December 23 2018 21:37:14
root / root
0644
version.py
12.056 KB
December 23 2018 21:37:14
root / root
0644
versionpredicate.py
5.013 KB
December 23 2018 21:37:14
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF