__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
"""
A simple log mechanism styled after PEP 282.
Retained for compatibility and should not be used.
"""
import logging
import warnings
from ._log import log as _global_log
DEBUG = logging.DEBUG
INFO = logging.INFO
WARN = logging.WARN
ERROR = logging.ERROR
FATAL = logging.FATAL
log = _global_log.log
debug = _global_log.debug
info = _global_log.info
warn = _global_log.warning
error = _global_log.error
fatal = _global_log.fatal
def set_threshold(level):
orig = _global_log.level
_global_log.setLevel(level)
return orig
def set_verbosity(v):
if v <= 0:
set_threshold(logging.WARN)
elif v == 1:
set_threshold(logging.INFO)
elif v >= 2:
set_threshold(logging.DEBUG)
class Log(logging.Logger):
"""distutils.log.Log is deprecated, please use an alternative from `logging`."""
def __init__(self, threshold=WARN):
warnings.warn(Log.__doc__) # avoid DeprecationWarning to ensure warn is shown
super().__init__(__name__, level=threshold)
@property
def threshold(self):
return self.level
@threshold.setter
def threshold(self, level):
self.setLevel(level)
warn = logging.Logger.warning
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| command | Folder | 0755 |
|
|
| __init__.py | File | 359 B | 0644 |
|
| _collections.py | File | 5.18 KB | 0644 |
|
| _functools.py | File | 411 B | 0644 |
|
| _log.py | File | 43 B | 0644 |
|
| _macos_compat.py | File | 239 B | 0644 |
|
| _msvccompiler.py | File | 19.16 KB | 0644 |
|
| archive_util.py | File | 8.37 KB | 0644 |
|
| bcppcompiler.py | File | 14.38 KB | 0644 |
|
| ccompiler.py | File | 47.5 KB | 0644 |
|
| cmd.py | File | 17.44 KB | 0644 |
|
| config.py | File | 4.8 KB | 0644 |
|
| core.py | File | 9.18 KB | 0644 |
|
| cygwinccompiler.py | File | 11.64 KB | 0644 |
|
| debug.py | File | 139 B | 0644 |
|
| dep_util.py | File | 3.33 KB | 0644 |
|
| dir_util.py | File | 7.88 KB | 0644 |
|
| dist.py | File | 49 KB | 0644 |
|
| errors.py | File | 3.5 KB | 0644 |
|
| extension.py | File | 10.03 KB | 0644 |
|
| fancy_getopt.py | File | 17.48 KB | 0644 |
|
| file_util.py | File | 8.02 KB | 0644 |
|
| filelist.py | File | 13.39 KB | 0644 |
|
| log.py | File | 1.17 KB | 0644 |
|
| msvc9compiler.py | File | 29.48 KB | 0644 |
|
| msvccompiler.py | File | 23.02 KB | 0644 |
|
| py38compat.py | File | 217 B | 0644 |
|
| py39compat.py | File | 639 B | 0644 |
|
| spawn.py | File | 3.41 KB | 0644 |
|
| sysconfig.py | File | 18.48 KB | 0644 |
|
| text_file.py | File | 11.8 KB | 0644 |
|
| unixccompiler.py | File | 15.24 KB | 0644 |
|
| util.py | File | 17.67 KB | 0644 |
|
| version.py | File | 12.65 KB | 0644 |
|
| versionpredicate.py | File | 5.08 KB | 0644 |
|