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  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__)
 

Function Documentation

◆ __tracebackhide__()

pytest_userver.plugins.log_capture.__tracebackhide__ ( excinfo)

Definition at line 250 of file log_capture.py.

◆ _match_entry()

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

Definition at line 243 of file log_capture.py.

◆ _userver_capture_control()

pytest_userver.plugins.log_capture._userver_capture_control ( userver_log_level)
protected

Definition at line 203 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 218 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 228 of file log_capture.py.

◆ _userver_log_capture_socket()

pytest_userver.plugins.log_capture._userver_log_capture_socket ( pytestconfig)
protected

Definition at line 208 of file log_capture.py.

◆ pytest_addoption()

pytest_userver.plugins.log_capture.pytest_addoption ( parser)

Definition at line 182 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 198 of file log_capture.py.

Variable Documentation

◆ DEFAULT_PORT

int pytest_userver.plugins.log_capture.DEFAULT_PORT = 2211

Definition at line 22 of file log_capture.py.

◆ logger

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

Definition at line 24 of file log_capture.py.

◆ USERVER_CONFIG_HOOKS

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

Definition at line 21 of file log_capture.py.