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

Detailed Description

Definition at line 101 of file logging.py.

Public Member Functions

 __init__ (self, *colorize_factory, config)
 
 pytest_sessionstart (self, session)
 
 pytest_sessionfinish (self, session)
 
 pytest_runtest_setup (self, item)
 
 pytest_runtest_makereport (self, item, call)
 
 update_position (self)
 
 register_flusher (self, func)
 
 register_logfile (self, pathlib.Path path, str title)
 

Protected Member Functions

 _userver_report_attach (self, report)
 
 _userver_report_attach_log (self, LogFile logfile, report, title)
 
 _run_flushers (self)
 

Protected Attributes

 _colorize_factory
 
 _config
 
 _logs
 
 _flushers
 

Static Protected Attributes

 _live_logs = None
 

Constructor & Destructor Documentation

◆ __init__()

pytest_userver.plugins.logging.UserverLoggingPlugin.__init__ ( self,
* colorize_factory,
config )

Definition at line 104 of file logging.py.

Member Function Documentation

◆ _run_flushers()

pytest_userver.plugins.logging.UserverLoggingPlugin._run_flushers ( self)
protected

Definition at line 165 of file logging.py.

◆ _userver_report_attach()

pytest_userver.plugins.logging.UserverLoggingPlugin._userver_report_attach ( self,
report )
protected

Definition at line 147 of file logging.py.

◆ _userver_report_attach_log()

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

Definition at line 152 of file logging.py.

◆ pytest_runtest_makereport()

pytest_userver.plugins.logging.UserverLoggingPlugin.pytest_runtest_makereport ( self,
item,
call )

Definition at line 127 of file logging.py.

◆ pytest_runtest_setup()

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

Definition at line 122 of file logging.py.

◆ pytest_sessionfinish()

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

Definition at line 118 of file logging.py.

◆ pytest_sessionstart()

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

Definition at line 110 of file logging.py.

◆ register_flusher()

pytest_userver.plugins.logging.UserverLoggingPlugin.register_flusher ( self,
func )

Definition at line 137 of file logging.py.

◆ register_logfile()

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

Definition at line 140 of file logging.py.

◆ update_position()

pytest_userver.plugins.logging.UserverLoggingPlugin.update_position ( self)

Definition at line 133 of file logging.py.

Member Data Documentation

◆ _colorize_factory

pytest_userver.plugins.logging.UserverLoggingPlugin._colorize_factory
protected

Definition at line 105 of file logging.py.

◆ _config

pytest_userver.plugins.logging.UserverLoggingPlugin._config
protected

Definition at line 106 of file logging.py.

◆ _flushers

pytest_userver.plugins.logging.UserverLoggingPlugin._flushers
protected

Definition at line 108 of file logging.py.

◆ _live_logs

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

Definition at line 102 of file logging.py.

◆ _logs

pytest_userver.plugins.logging.UserverLoggingPlugin._logs
protected

Definition at line 107 of file logging.py.


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