log_handler module

The Log Handler (Connector) is a singleton Handler/Connector that manages the log system. It accepts a handler as its input/output handlers. If connecting to a database, it requires a table of the following format:

log_message: json id: str/UUID job_id: str/UUID iteration_id: str/UUID step_name: str contributor_name: str

Writing logs: All connectors that perform an action will use the log handler to persist the logs of each step. Retrieving logs: The log handler retrieves the logs in various formats (i.e. dataframe, json)

class log_handler.LOG_DESTINATION

Bases: object

DB = 1
JSON = 2
class log_handler.LogHandler(*args, **kwargs)

Bases: object

create_excel(**kwargs)
create_log_message(props: dict, *args, **kwargs)
property db_handler: libs.handler.base_handler.BaseDBHandler
property default_destination: str
get(**kwargs) dict
get_dataframe(message_part: str = 'results', **kwargs) object
insert_query = ''
log(props: dict, *args, **kwargs) bool
property retrieve_query: str