userver: pytest_userver.plugins.log_capture Namespace Reference
Loading...
Searching...
No Matches
pytest_userver.plugins.log_capture Namespace Reference

Detailed Description

Capture and work with logs.

Classes

class  CaptureControl
 
class  CapturedLogs
 
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)
 

Variables

list USERVER_CONFIG_HOOKS = ['_userver_config_logs_capture']
 
int DEFAULT_PORT = 2211
 

Function Documentation

◆ _match_entry()

bool pytest_userver.plugins.log_capture._match_entry ( tskv.TskvRow row,
query )
protected

Definition at line 195 of file log_capture.py.

◆ _userver_capture_control()

pytest_userver.plugins.log_capture._userver_capture_control ( userver_log_level)
protected

Definition at line 153 of file log_capture.py.

◆ _userver_capture_server()

pytest_userver.plugins.log_capture._userver_capture_server ( CaptureControl _userver_capture_control,
_userver_log_capture_socket,
loop )
protected

Definition at line 168 of file log_capture.py.

◆ _userver_config_logs_capture()

pytest_userver.plugins.log_capture._userver_config_logs_capture ( _userver_log_capture_socket)
protected

Definition at line 180 of file log_capture.py.

◆ _userver_log_capture_socket()

pytest_userver.plugins.log_capture._userver_log_capture_socket ( pytestconfig)
protected

Definition at line 158 of file log_capture.py.

◆ pytest_addoption()

pytest_userver.plugins.log_capture.pytest_addoption ( parser)

Definition at line 132 of file log_capture.py.

◆ userver_log_capture()

pytest_userver.plugins.log_capture.userver_log_capture ( _userver_capture_control,
_userver_capture_server )

Definition at line 148 of file log_capture.py.

Variable Documentation

◆ DEFAULT_PORT

int pytest_userver.plugins.log_capture.DEFAULT_PORT = 2211

Definition at line 21 of file log_capture.py.

◆ USERVER_CONFIG_HOOKS

list pytest_userver.plugins.log_capture.USERVER_CONFIG_HOOKS = ['_userver_config_logs_capture']

Definition at line 20 of file log_capture.py.