Log class¶
The Log class handles the logic for searching, running the LogItem parsers and writing output log files.
Searches files for log items and writes them to an output log using a template.
- assumptions.log.Log.add_log_item_type(log_item)¶
add a
LogItemsubclass, for use when searching for log items.
- assumptions.log.Log.find_items(relative_search_path='', extension='')¶
recursively search files under the specificed path for log items. Current directory and all file extensions by default.
- assumptions.log.Log.write_log(template_path=None, encoding: str = 'utf-8')¶
write an output log file, inserting discovered log items into the provided template. Uses the built-in template for the choses log type by default.