Capture and work with logs.
Functions | |
| None | pytest_addoption (parser) |
| logcapture.CaptureServer | userver_log_capture (pytestconfig, userver_log_level) |
| Session-scoped TCP server that receives service logs in TSKV format. | |
| _userver_config_logs_capture (userver_log_capture) | |
| tskv.TskvRow | _tskv_parse_line (bytes rawline) |
Variables | |
| list | USERVER_CONFIG_HOOKS = ['_userver_config_logs_capture'] |
| int | DEFAULT_PORT = 2211 |
| logger = logging.getLogger(__name__) | |
|
protected |
Definition at line 90 of file log_capture.py.
|
protected |
Definition at line 72 of file log_capture.py.
| None pytest_userver.plugins.log_capture.pytest_addoption | ( | parser | ) |
Definition at line 21 of file log_capture.py.
| int pytest_userver.plugins.log_capture.DEFAULT_PORT = 2211 |
Definition at line 16 of file log_capture.py.
| pytest_userver.plugins.log_capture.logger = logging.getLogger(__name__) |
Definition at line 18 of file log_capture.py.
| list pytest_userver.plugins.log_capture.USERVER_CONFIG_HOOKS = ['_userver_config_logs_capture'] |
Definition at line 15 of file log_capture.py.