Capture and work with logs.
Classes | |
class | BaseError |
class | CaptureControl |
class | CapturedLogs |
class | ClientConnectTimeoutError |
class | IncorrectUsageError |
class | LogLevel |
Functions | |
pytest_addoption (parser) | |
userver_log_capture (_userver_capture_control, _userver_capture_server) | |
_userver_capture_control (userver_log_level) | |
_userver_log_capture_socket (pytestconfig) | |
_userver_capture_server (CaptureControl _userver_capture_control, _userver_log_capture_socket, loop) | |
_userver_config_logs_capture (_userver_log_capture_socket) | |
bool | _match_entry (tskv.TskvRow row, query) |
__tracebackhide__ (excinfo) | |
Variables | |
list | USERVER_CONFIG_HOOKS = ['_userver_config_logs_capture'] |
int | DEFAULT_PORT = 2211 |
logger = logging.getLogger(__name__) | |
pytest_userver.plugins.log_capture.__tracebackhide__ | ( | excinfo | ) |
Definition at line 250 of file log_capture.py.
|
protected |
Definition at line 243 of file log_capture.py.
|
protected |
Definition at line 203 of file log_capture.py.
|
protected |
Definition at line 218 of file log_capture.py.
|
protected |
Definition at line 228 of file log_capture.py.
|
protected |
Definition at line 208 of file log_capture.py.
pytest_userver.plugins.log_capture.pytest_addoption | ( | parser | ) |
Definition at line 182 of file log_capture.py.
pytest_userver.plugins.log_capture.userver_log_capture | ( | _userver_capture_control, | |
_userver_capture_server ) |
Definition at line 198 of file log_capture.py.
int pytest_userver.plugins.log_capture.DEFAULT_PORT = 2211 |
Definition at line 22 of file log_capture.py.
pytest_userver.plugins.log_capture.logger = logging.getLogger(__name__) |
Definition at line 24 of file log_capture.py.
list pytest_userver.plugins.log_capture.USERVER_CONFIG_HOOKS = ['_userver_config_logs_capture'] |
Definition at line 21 of file log_capture.py.