userver: pytest_userver.plugins.logging.LiveLogHandler Class Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
pytest_userver.plugins.logging.LiveLogHandler Class Reference

Detailed Description

Definition at line 51 of file logging.py.

Public Member Functions

 __init__ (self, *colorize_factory, float delay=0.05)
 
 register_logfile (self, pathlib.Path path)
 
 join (self, float timeout=10)
 

Protected Member Functions

 _logreader_thread (self, pathlib.Path path)
 
 _write_logline (self, str line)
 
bool _eof_handler (self)
 

Protected Attributes

 _colorize_factory
 
 _threads
 
 _exiting
 
 _delay
 

Constructor & Destructor Documentation

◆ __init__()

pytest_userver.plugins.logging.LiveLogHandler.__init__ ( self,
* colorize_factory,
float delay = 0.05 )

Definition at line 52 of file logging.py.

Member Function Documentation

◆ _eof_handler()

bool pytest_userver.plugins.logging.LiveLogHandler._eof_handler ( self)
protected

Definition at line 86 of file logging.py.

◆ _logreader_thread()

pytest_userver.plugins.logging.LiveLogHandler._logreader_thread ( self,
pathlib.Path path )
protected

Definition at line 70 of file logging.py.

◆ _write_logline()

pytest_userver.plugins.logging.LiveLogHandler._write_logline ( self,
str line )
protected

Definition at line 83 of file logging.py.

◆ join()

pytest_userver.plugins.logging.LiveLogHandler.join ( self,
float timeout = 10 )

Definition at line 65 of file logging.py.

◆ register_logfile()

pytest_userver.plugins.logging.LiveLogHandler.register_logfile ( self,
pathlib.Path path )

Definition at line 58 of file logging.py.

Member Data Documentation

◆ _colorize_factory

pytest_userver.plugins.logging.LiveLogHandler._colorize_factory
protected

Definition at line 53 of file logging.py.

◆ _delay

pytest_userver.plugins.logging.LiveLogHandler._delay
protected

Definition at line 56 of file logging.py.

◆ _exiting

pytest_userver.plugins.logging.LiveLogHandler._exiting
protected

Definition at line 55 of file logging.py.

◆ _threads

pytest_userver.plugins.logging.LiveLogHandler._threads
protected

Definition at line 54 of file logging.py.


The documentation for this class was generated from the following file:
  • /data/code/userver/testsuite/pytest_plugins/pytest_userver/plugins/logging.py