Linux jobworks 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:53:05 UTC 2026 x86_64
Apache/2.4.58 (Ubuntu)
Server IP : 10.0.1.5 & Your IP : 216.73.217.52
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
twisted /
logger /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-06-04 06:40
test
[ DIR ]
drwxr-xr-x
2026-06-04 06:40
__init__.py
3.29
KB
-rw-r--r--
2026-05-22 14:58
_buffer.py
1.49
KB
-rw-r--r--
2026-05-22 14:58
_capture.py
624
B
-rw-r--r--
2026-05-22 14:58
_file.py
2.28
KB
-rw-r--r--
2026-05-22 14:58
_filter.py
6.71
KB
-rw-r--r--
2026-05-22 14:58
_flatten.py
4.88
KB
-rw-r--r--
2026-05-22 14:58
_format.py
13.16
KB
-rw-r--r--
2026-05-22 14:58
_global.py
8.43
KB
-rw-r--r--
2026-05-22 14:58
_interfaces.py
2.29
KB
-rw-r--r--
2026-05-22 14:58
_io.py
4.44
KB
-rw-r--r--
2026-05-22 14:58
_json.py
8.21
KB
-rw-r--r--
2026-05-22 14:58
_legacy.py
5.12
KB
-rw-r--r--
2026-05-22 14:58
_levels.py
2.89
KB
-rw-r--r--
2026-05-22 14:58
_logger.py
9.75
KB
-rw-r--r--
2026-05-22 14:58
_observer.py
3.17
KB
-rw-r--r--
2026-05-22 14:58
_stdlib.py
4.42
KB
-rw-r--r--
2026-05-22 14:58
_util.py
1.34
KB
-rw-r--r--
2026-05-22 14:58
Save
Rename
# -*- test-case-name: twisted.logger.test.test_util -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Logging utilities. """ from typing import List from ._interfaces import LogTrace from ._logger import Logger def formatTrace(trace: LogTrace) -> str: """ Format a trace (that is, the contents of the C{log_trace} key of a log event) as a visual indication of the message's propagation through various observers. @param trace: the contents of the C{log_trace} key from an event. @return: A multi-line string with indentation and arrows indicating the flow of the message through various observers. """ def formatWithName(obj: object) -> str: if hasattr(obj, "name"): return f"{obj} ({obj.name})" else: return f"{obj}" result = [] lineage: List[Logger] = [] for parent, child in trace: if not lineage or lineage[-1] is not parent: if parent in lineage: while lineage[-1] is not parent: lineage.pop() else: if not lineage: result.append(f"{formatWithName(parent)}\n") lineage.append(parent) result.append(" " * len(lineage)) result.append(f"-> {formatWithName(child)}\n") return "".join(result)