userver: pytest_userver.plugins.log_capture Namespace Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
pytest_userver.plugins.log_capture Namespace Reference

Detailed Description

Capture and work with logs.

Functions

 pytest_addoption (parser)
 
 userver_log_capture (pytestconfig, userver_log_level)
 
 _userver_config_logs_capture (userver_log_capture)
 
 _tskv_parse_line (bytes rawline)
 

Variables

list USERVER_CONFIG_HOOKS = ['_userver_config_logs_capture']
 
int DEFAULT_PORT = 2211
 
 logger = logging.getLogger(__name__)
 

Function Documentation

◆ _tskv_parse_line()

pytest_userver.plugins.log_capture._tskv_parse_line ( bytes rawline)
protected

Definition at line 70 of file log_capture.py.

◆ _userver_config_logs_capture()

pytest_userver.plugins.log_capture._userver_config_logs_capture ( userver_log_capture)
protected

Definition at line 52 of file log_capture.py.

◆ pytest_addoption()

pytest_userver.plugins.log_capture.pytest_addoption ( parser)

Definition at line 21 of file log_capture.py.

◆ userver_log_capture()

pytest_userver.plugins.log_capture.userver_log_capture ( pytestconfig,
userver_log_level )

Definition at line 37 of file log_capture.py.

Variable Documentation

◆ DEFAULT_PORT

int pytest_userver.plugins.log_capture.DEFAULT_PORT = 2211

Definition at line 16 of file log_capture.py.

◆ logger

pytest_userver.plugins.log_capture.logger = logging.getLogger(__name__)

Definition at line 18 of file log_capture.py.

◆ USERVER_CONFIG_HOOKS

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

Definition at line 15 of file log_capture.py.