GRAYBYTE WORDPRESS FILE MANAGER6953

Server IP : 198.54.121.189 / Your IP : 216.73.216.224
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 : /opt/alt/python33/lib64/python3.3/distutils/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/python33/lib64/python3.3/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
            if stream.errors == 'strict':
                # 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
..
--
May 20 2024 08:31:19
root / linksafe
0755
__pycache__
--
May 20 2024 08:31:19
root / linksafe
0755
command
--
May 20 2024 08:31:19
root / linksafe
0755
README
0.288 KB
September 19 2017 07:32:02
root / linksafe
0644
__init__.py
0.23 KB
April 17 2024 16:58:19
root / linksafe
0644
archive_util.py
6.425 KB
April 17 2024 16:58:19
root / linksafe
0644
bcppcompiler.py
14.585 KB
April 17 2024 16:58:19
root / linksafe
0644
ccompiler.py
46.439 KB
April 17 2024 16:58:19
root / linksafe
0644
cmd.py
18.589 KB
April 17 2024 16:58:19
root / linksafe
0644
config.py
4.354 KB
April 17 2024 16:58:19
root / linksafe
0644
core.py
8.681 KB
April 17 2024 16:58:19
root / linksafe
0644
cygwinccompiler.py
16.122 KB
April 17 2024 16:58:19
root / linksafe
0644
debug.py
0.136 KB
April 17 2024 16:58:19
root / linksafe
0644
dep_util.py
3.409 KB
April 17 2024 16:58:19
root / linksafe
0644
dir_util.py
7.633 KB
April 17 2024 16:58:19
root / linksafe
0644
dist.py
47.675 KB
April 17 2024 16:58:19
root / linksafe
0644
emxccompiler.py
11.591 KB
April 17 2024 16:58:19
root / linksafe
0644
errors.py
3.504 KB
April 17 2024 16:58:19
root / linksafe
0644
extension.py
10.093 KB
April 17 2024 16:58:19
root / linksafe
0644
fancy_getopt.py
17.367 KB
April 17 2024 16:58:19
root / linksafe
0644
file_util.py
7.627 KB
April 17 2024 16:58:19
root / linksafe
0644
filelist.py
12.422 KB
April 17 2024 16:58:19
root / linksafe
0644
log.py
1.863 KB
April 17 2024 16:58:19
root / linksafe
0644
msvc9compiler.py
29.813 KB
April 17 2024 16:58:19
root / linksafe
0644
msvccompiler.py
22.929 KB
April 17 2024 16:58:19
root / linksafe
0644
spawn.py
8.411 KB
April 17 2024 16:58:19
root / linksafe
0644
sysconfig.py
22.033 KB
April 17 2024 16:58:19
root / linksafe
0644
text_file.py
12.175 KB
April 17 2024 16:58:19
root / linksafe
0644
unixccompiler.py
13.333 KB
April 17 2024 16:58:19
root / linksafe
0644
util.py
20.307 KB
April 17 2024 16:58:19
root / linksafe
0644
version.py
12.187 KB
April 17 2024 16:58:19
root / linksafe
0644
versionpredicate.py
5.012 KB
April 17 2024 16:58:19
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF