ListHandler#
- class astropop.logger.ListHandler(log_list=None, full_record=False)#
Bases:
Handler
Logging handler to save messages in a list. No thread safe!
- Parameters:
- log_listlist or None, optional
List to store the logs. If None, a new list will be created and can be accesses with
ListHandler.log_list
- full_recordbool, optional
Store the full Python log record instead of just the message.
Attributes Summary
True if full records are being stored in list.
List where records are being stored.
Methods Summary
emit
(record)Append the log record to the list.
Attributes Documentation
- full_record#
True if full records are being stored in list. False if only messages.
- log_list#
List where records are being stored.
Methods Documentation
- emit(record)#
Append the log record to the list.