log_to_list#

astropop.logger.log_to_list(logger, log_list=None, full_record=False)#

Add a ListHandler and a log_list to a Logger.

Parameters:
loggerlogging.Logger

Logger instance where handler will be added.

log_listlist or None, optional

List to store log records.

full_recordbool, optional

Store full log records instead of just the message.

Returns:
ListHandler created during the process.