278d8ac74e 
								
							 
						 
						
							
							
								
								Fix caplog docstring: indentation caused errors during docs build  
							
							
							
						 
						
							2018-03-16 00:06:15 -03:00  
				
					
						
							
							
								 
						
							
								5e92644f94 
								
							 
						 
						
							
							
								
								Properly reset LogCaptureHandler in caplog  
							
							... 
							
							
							
							Closes  #3297  
						
							2018-03-13 00:36:51 +02:00  
				
					
						
							
							
								 
						
							
								30453057e8 
								
							 
						 
						
							
							
								
								Add logging plugin to plugins list  
							
							
							
						 
						
							2018-03-03 23:50:13 +01:00  
				
					
						
							
							
								 
						
							
								0d15a46863 
								
							 
						 
						
							
							
								
								Don't traceback on unkown sections.  
							
							
							
						 
						
							2018-02-05 19:09:38 +00:00  
				
					
						
							
							
								 
						
							
								ebab1b6c69 
								
							 
						 
						
							
							
								
								live-logging: Colorize levelname  
							
							
							
						 
						
							2018-01-30 18:21:12 +01:00  
				
					
						
							
							
								 
						
							
								15cbd61159 
								
							 
						 
						
							
							
								
								Change caplog.get_handler(when) to caplog.get_records(when)  
							
							... 
							
							
							
							While updating the docs I noticed that caplog.get_handler() exposes
the underlying Handler object, which I think it is a bit too much
detail at this stage. Update to return the records directly instead. 
							
						 
						
							2018-01-24 19:08:49 -02:00  
				
					
						
							
							
								 
						
							
								b4e8861aa5 
								
							 
						 
						
							
							
								
								Fix typos  
							
							
							
						 
						
							2018-01-23 19:02:32 -02:00  
				
					
						
							
							
								 
						
							
								113bfb6be8 
								
							 
						 
						
							
							
								
								Report 'call' phase as 'live log call'  
							
							... 
							
							
							
							As commented in review, this makes it consistent with the headers shown
by stdout/stderr capturing ("Captured log call") 
							
						 
						
							2018-01-22 21:43:35 -02:00  
				
					
						
							
							
								 
						
							
								3a9d0b26d5 
								
							 
						 
						
							
							
								
								Use pytest_runtest_logstart to signal the start of a new test  
							
							... 
							
							
							
							This also simplifies the code a bit because we don't need to keep
a set of ids anymore 
							
						 
						
							2018-01-22 21:20:48 -02:00  
				
					
						
							
							
								 
						
							
								0df42b4426 
								
							 
						 
						
							
							
								
								Show a header for each testing phase during live logging  
							
							... 
							
							
							
							As suggested during review 
							
						 
						
							2018-01-22 21:00:52 -02:00  
				
					
						
							
							
								 
						
							
								29a7b5e064 
								
							 
						 
						
							
							
								
								Initialize log_cli_handler to None during LoggingPlugin init  
							
							... 
							
							
							
							Some of testdir's functionality bypasses pytest_runtestloop so this
attribute needs to be set early 
							
						 
						
							2018-01-20 14:19:45 -02:00  
				
					
						
							
							
								 
						
							
								9dbcac9af3 
								
							 
						 
						
							
							
								
								Suspend stdout/stderr capturing when emitting live logging messages  
							
							
							
						 
						
							2018-01-20 12:02:55 -02:00  
				
					
						
							
							
								 
						
							
								97a4967b03 
								
							 
						 
						
							
							
								
								Improve code formatting  
							
							
							
						 
						
							2018-01-20 12:02:55 -02:00  
				
					
						
							
							
								 
						
							
								8f6a5928f7 
								
							 
						 
						
							
							
								
								Add newline before log messages and enable -v output when log_cli is enabled  
							
							
							
						 
						
							2018-01-20 12:02:55 -02:00  
				
					
						
							
							
								 
						
							
								5d89a93977 
								
							 
						 
						
							
							
								
								Small improvements to tests suggested during review  
							
							
							
						 
						
							2018-01-20 12:02:54 -02:00  
				
					
						
							
							
								 
						
							
								8d735f3e1d 
								
							 
						 
						
							
							
								
								Live log option now writes to the terminal reporter  
							
							... 
							
							
							
							Ref: #3013  
							
						 
						
							2018-01-20 12:01:42 -02:00  
				
					
						
							
							
								 
						
							
								aca1b06747 
								
							 
						 
						
							
							
								
								Undo log level set by caplog.set_level at the end of the test  
							
							... 
							
							
							
							Otherwise this leaks the log level information to other tests
Ref: #3013  
							
						 
						
							2018-01-20 12:01:42 -02:00  
				
					
						
							
							
								 
						
							
								8dcd2718aa 
								
							 
						 
						
							
							
								
								No longer change the level of any logger unless requested explicitly  
							
							... 
							
							
							
							Ref: #3013  
							
						 
						
							2018-01-20 12:01:42 -02:00  
				
					
						
							
							
								 
						
							
								5ad1313b8a 
								
							 
						 
						
							
							
								
								log_cli must now be enabled explicitly  
							
							... 
							
							
							
							Ref: #3013  
							
						 
						
							2018-01-20 12:00:46 -02:00  
				
					
						
							
							
								 
						
							
								7ea5a22657 
								
							 
						 
						
							
							
								
								Access captures logs in teardown  
							
							
							
						 
						
							2018-01-19 12:42:35 +01:00  
				
					
						
							
							
								 
						
							
								3862b0b28d 
								
							 
						 
						
							
							
								
								Remove logger parameter from catching_logs  
							
							... 
							
							
							
							The logger parameter of catching_logs is not used anywhere. The main
motivation for removing the logger parameter is that it removes the
logger = logger or logging.getLogger(logger)
line. IMO there are too many occurences of the string 'logg' ;) 
							
						 
						
							2017-12-13 21:13:59 +01:00  
				
					
						
							
							
								 
						
							
								ba209b5230 
								
							 
						 
						
							
							
								
								Integrate logging_using_handler into catching_logs  
							
							... 
							
							
							
							logging_using_handler is only used in catching_logs. Therefore it makes
sense to remove one of the many context managers from the logging
plugin. 
							
						 
						
							2017-12-07 16:34:53 +01:00  
				
					
						
							
							
								 
						
							
								af75ca435b 
								
							 
						 
						
							
							
								
								Fix some coding-style issues in the logging plugin  
							
							
							
						 
						
							2017-10-12 02:19:24 +02:00  
				
					
						
							
							
								 
						
							
								775f4a6f2f 
								
							 
						 
						
							
							
								
								Fix flake8 issue  
							
							
							
						 
						
							2017-10-12 02:19:24 +02:00  
				
					
						
							
							
								 
						
							
								0e83511d6d 
								
							 
						 
						
							
							
								
								Rename name of registered logging plugin  
							
							
							
						 
						
							2017-10-12 02:19:24 +02:00  
				
					
						
							
							
								 
						
							
								1f3ab118fa 
								
							 
						 
						
							
							
								
								Remove usage of get_logger_obj  
							
							
							
						 
						
							2017-10-12 02:19:24 +02:00  
				
					
						
							
							
								 
						
							
								0ec72d0745 
								
							 
						 
						
							
							
								
								Improve get_option_ini and get_actual_log_level  
							
							
							
						 
						
							2017-10-12 02:19:24 +02:00  
				
					
						
							
							
								 
						
							
								ad21d5cac4 
								
							 
						 
						
							
							
								
								Remove pytest-capturelog backward compat code  
							
							
							
						 
						
							2017-09-26 23:24:27 +02:00  
				
					
						
							
							
								 
						
							
								2559ec8bdb 
								
							 
						 
						
							
							
								
								use 'formatter' kwarg of catching_logs  
							
							
							
						 
						
							2017-09-22 22:27:50 +02:00  
				
					
						
							
							
								 
						
							
								207f153ec1 
								
							 
						 
						
							
							
								
								Remove logging_at_level ctx manager  
							
							
							
						 
						
							2017-09-22 22:27:50 +02:00  
				
					
						
							
							
								 
						
							
								3a4011585f 
								
							 
						 
						
							
							
								
								catching_logs: Remove usage of 'closing' ctx manager  
							
							... 
							
							
							
							The 'closing' context manager is only needed for the log_file_handler. 
							
						 
						
							2017-09-22 22:27:50 +02:00  
				
					
						
							
							
								 
						
							
								57f66a455a 
								
							 
						 
						
							
							
								
								catching_logs: Remove unused 'filter' kwarg  
							
							
							
						 
						
							2017-09-22 22:27:50 +02:00  
				
					
						
							
							
								 
						
							
								e41fd52e8c 
								
							 
						 
						
							
							
								
								Introduce live_logs context manager  
							
							
							
						 
						
							2017-09-22 22:27:50 +02:00  
				
					
						
							
							
								 
						
							
								08f6b5f4ea 
								
							 
						 
						
							
							
								
								Use pytest.hookimpl instead of pytest.mark.hookwrapper  
							
							... 
							
							
							
							pytest.mark.hookwrapper seems to be used nowhere in the _pytest package. 
							
						 
						
							2017-09-22 22:27:50 +02:00  
				
					
						
							
							
								 
						
							
								d13e17cf51 
								
							 
						 
						
							
							
								
								Don't modify the 'config' object in __init__  
							
							
							
						 
						
							2017-09-22 22:27:50 +02:00  
				
					
						
							
							
								 
						
							
								f1f6109255 
								
							 
						 
						
							
							
								
								Remove _catchlog_ prefix  
							
							
							
						 
						
							2017-09-22 22:27:50 +02:00  
				
					
						
							
							
								 
						
							
								87b8dc5afb 
								
							 
						 
						
							
							
								
								Move 'config' handling from pytest_configure to __init__  
							
							
							
						 
						
							2017-09-22 22:27:50 +02:00  
				
					
						
							
							
								 
						
							
								fc965c1dc5 
								
							 
						 
						
							
							
								
								Remove outdated docstring  
							
							
							
						 
						
							2017-09-22 22:27:50 +02:00  
				
					
						
							
							
								 
						
							
								a1bd54e4ea 
								
							 
						 
						
							
							
								
								Clean-up LogCaptureHandler  
							
							
							
						 
						
							2017-09-22 22:27:50 +02:00  
				
					
						
							
							
								 
						
							
								36cceeb10e 
								
							 
						 
						
							
							
								
								Set type of log_print ini-variable to 'bool'  
							
							
							
						 
						
							2017-09-22 22:27:50 +02:00  
				
					
						
							
							
								 
						
							
								98209e92ee 
								
							 
						 
						
							
							
								
								Remove superfluous whitespace in docstring  
							
							
							
						 
						
							2017-09-22 22:27:50 +02:00  
				
					
						
							
							
								 
						
							
								1bea7e6985 
								
							 
						 
						
							
							
								
								Cleanup pytest_addoption  
							
							
							
						 
						
							2017-09-22 22:27:50 +02:00  
				
					
						
							
							
								 
						
							
								6607478b23 
								
							 
						 
						
							
							
								
								Add unittests for LoggingPlugin (excluding perf tests)  
							
							
							
						 
						
							2017-09-22 22:27:49 +02:00  
				
					
						
							
							
								 
						
							
								8eafbd05ca 
								
							 
						 
						
							
							
								
								Merge the pytest-catchlog plugin  
							
							
							
						 
						
							2017-09-22 22:27:49 +02:00