Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
trac /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
admin
[ DIR ]
drwxr-xr-x
db
[ DIR ]
drwxr-xr-x
htdocs
[ DIR ]
drwxr-xr-x
locale
[ DIR ]
drwxr-xr-x
mimeview
[ DIR ]
drwxr-xr-x
notification
[ DIR ]
drwxr-xr-x
prefs
[ DIR ]
drwxr-xr-x
search
[ DIR ]
drwxr-xr-x
templates
[ DIR ]
drwxr-xr-x
ticket
[ DIR ]
drwxr-xr-x
timeline
[ DIR ]
drwxr-xr-x
upgrades
[ DIR ]
drwxr-xr-x
util
[ DIR ]
drwxr-xr-x
versioncontrol
[ DIR ]
drwxr-xr-x
web
[ DIR ]
drwxr-xr-x
wiki
[ DIR ]
drwxr-xr-x
__init__.py
676
B
-rw-r--r--
about.py
2.7
KB
-rw-r--r--
api.py
2.26
KB
-rw-r--r--
attachment.py
47.45
KB
-rw-r--r--
cache.py
9.89
KB
-rw-r--r--
config.py
36.29
KB
-rw-r--r--
core.py
9.75
KB
-rw-r--r--
db_default.py
14.51
KB
-rw-r--r--
dist.py
24.48
KB
-rw-r--r--
env.py
44.2
KB
-rw-r--r--
loader.py
10.02
KB
-rw-r--r--
log.py
2.71
KB
-rw-r--r--
perm.py
32.4
KB
-rw-r--r--
resource.py
16.23
KB
-rw-r--r--
test.py
20.9
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : log.py
# -*- coding: utf-8 -*- # # Copyright (C) 2003-2021 Edgewall Software # Copyright (C) 2003-2005 Daniel Lundin <daniel@edgewall.com> # Copyright (C) 2006 Christian Boos <cboos@edgewall.org> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at https://trac.edgewall.org/wiki/TracLicense. # # This software consists of voluntary contributions made by many # individuals. For the exact contribution history, see the revision # history and logs, available at https://trac.edgewall.org/log/. # # Author: Daniel Lundin <daniel@edgewall.com> import logging import logging.handlers import sys LOG_TYPES = ('file', 'stderr', 'syslog', 'eventlog', 'none') LOG_TYPE_ALIASES = ('winlog', 'nteventlog', 'unix') LOG_LEVELS = ('INFO', 'CRITICAL', 'ERROR', 'WARNING', 'DEBUG') LOG_LEVEL_ALIASES_MAP = {'WARN': 'WARNING', 'ALL': 'DEBUG'} LOG_LEVEL_ALIASES = tuple(sorted(LOG_LEVEL_ALIASES_MAP)) LOG_LEVEL_MAP = { 'DEBUG': logging.DEBUG, 'ALL': logging.DEBUG, 'INFO': logging.INFO, 'WARNING': logging.WARNING, 'WARN': logging.WARNING, 'ERROR': logging.ERROR, 'CRITICAL': logging.CRITICAL } def logger_handler_factory(logtype='syslog', logfile=None, level='WARNING', logid='Trac', format=None): logger = logging.getLogger(logid) logtype = logtype.lower() if logtype == 'file': hdlr = logging.FileHandler(logfile) elif logtype in ('eventlog', 'winlog', 'nteventlog'): # Requires win32 extensions hdlr = logging.handlers.NTEventLogHandler(logid, logtype='Application') elif logtype in ('syslog', 'unix'): hdlr = logging.handlers.SysLogHandler('/dev/log') elif logtype == 'stderr': hdlr = logging.StreamHandler(sys.stderr) else: hdlr = logging.NullHandler() level = level.upper() level_as_int = LOG_LEVEL_MAP.get(level) if level_as_int is None: # Should never be reached because level is restricted through # ChoiceOption, therefore message is intentionally left untranslated raise AssertionError("Unrecognized log level '%s'" % level) logger.setLevel(level_as_int) if not format: format = 'Trac[%(module)s] %(levelname)s: %(message)s' if logtype in ('file', 'stderr'): format = '%(asctime)s ' + format datefmt = '%X' if logtype == 'stderr' else '' formatter = logging.Formatter(format, datefmt) hdlr.setFormatter(formatter) return logger, hdlr def shutdown(logger): for handler in logger.handlers[:]: handler.flush() handler.close() logger.removeHandler(handler)
Close