userver: pytest_userver.plugins.logging.UserverLoggingPlugin Class Reference
Loading...
Searching...
No Matches
pytest_userver.plugins.logging.UserverLoggingPlugin Class Reference

Detailed Description

Definition at line 93 of file logging.py.

Public Member Functions

 __init__ (self, *colorize_factory, bool live_logs_enabled=False)
 
 pytest_sessionfinish (self, session)
 
 pytest_runtest_setup (self, item)
 
 pytest_runtest_teardown (self, item)
 
 register_logfile (self, pathlib.Path path, str title)
 

Protected Member Functions

 _userver_log_dump (self, item, when)
 
 _userver_report_attach (self, item, when)
 
 _userver_report_attach_log (self, LogFile logfile, item, when, title)
 

Protected Attributes

 _colorize_factory
 
 _logs
 

Static Protected Attributes

 _live_logs = None
 

Constructor & Destructor Documentation

◆ __init__()

pytest_userver.plugins.logging.UserverLoggingPlugin.__init__ ( self,
* colorize_factory,
bool live_logs_enabled = False )

Definition at line 96 of file logging.py.

Member Function Documentation

◆ _userver_log_dump()

pytest_userver.plugins.logging.UserverLoggingPlugin._userver_log_dump ( self,
item,
when )
protected

Definition at line 121 of file logging.py.

◆ _userver_report_attach()

pytest_userver.plugins.logging.UserverLoggingPlugin._userver_report_attach ( self,
item,
when )
protected

Definition at line 130 of file logging.py.

◆ _userver_report_attach_log()

pytest_userver.plugins.logging.UserverLoggingPlugin._userver_report_attach_log ( self,
LogFile logfile,
item,
when,
title )
protected

Definition at line 134 of file logging.py.

◆ pytest_runtest_setup()

pytest_userver.plugins.logging.UserverLoggingPlugin.pytest_runtest_setup ( self,
item )

Definition at line 106 of file logging.py.

◆ pytest_runtest_teardown()

pytest_userver.plugins.logging.UserverLoggingPlugin.pytest_runtest_teardown ( self,
item )

Definition at line 111 of file logging.py.

◆ pytest_sessionfinish()

pytest_userver.plugins.logging.UserverLoggingPlugin.pytest_sessionfinish ( self,
session )

Definition at line 102 of file logging.py.

◆ register_logfile()

pytest_userver.plugins.logging.UserverLoggingPlugin.register_logfile ( self,
pathlib.Path path,
str title )

Definition at line 114 of file logging.py.

Member Data Documentation

◆ _colorize_factory

pytest_userver.plugins.logging.UserverLoggingPlugin._colorize_factory
protected

Definition at line 97 of file logging.py.

◆ _live_logs

pytest_userver.plugins.logging.UserverLoggingPlugin._live_logs = None
staticprotected

Definition at line 94 of file logging.py.

◆ _logs

pytest_userver.plugins.logging.UserverLoggingPlugin._logs
protected

Definition at line 98 of file logging.py.


The documentation for this class was generated from the following file: