colda.utils.log package

Submodules

colda.utils.log.abstract_log module

class colda.utils.log.abstract_log.AbstractLog

Bases: object

abstract get_all_logs(*args)
abstract get_log(*args)
abstract log_serialization()
abstract store_log(*args)

colda.utils.log.algorithm_log module

class colda.utils.log.algorithm_log.AlgorithmLog

Bases: BaseLog, AbstractLog

Algorithm log is used to store the information from the algorithm stage.

Methods

get_instance store_log get_log get_all_logs

classmethod delete()
get_all_logs()

For unittest, change this function later

classmethod get_instance() AlgorithmLog

Singleton pattern. Get instance of current class.

Returns

AlgorithmLog

get_log(user_id: str, task_id: str, log_category: str = 'main_test') str

get msgs from log.

Parameters

user_id : str task_id : str msgs : list[str] log_category : str=’main_test’

Returns

None

log_serialization()
store_log(user_id: str, task_id: str, msgs: list[str], log_category: str = 'main_test') None

Store msgs to log.

Parameters

user_id : str task_id : str msgs : list[str] log_category : str=’main_test’

Returns

None

colda.utils.log.api module

class colda.utils.log.api.GetAlgorithmLog

Bases: AbstractLogFactory

classmethod get_instance() AlgorithmLog

AlgorithmLog factory

Returns

AlgorithmLog

class colda.utils.log.api.GetWorkflowLog

Bases: AbstractLogFactory

classmethod get_instance() WorkflowLog

WorkflowLog factory

Returns

WorkflowLog

colda.utils.log.base module

class colda.utils.log.base.BaseLog

Bases: object

Base class for log

final placeholder()

colda.utils.log.log_factory module

class colda.utils.log.log_factory.AbstractLogFactory

Bases: ABC

Abstract Factory

abstract classmethod get_log()
class colda.utils.log.log_factory.GetAlgorithmLog

Bases: AbstractLogFactory

classmethod get_instance() AlgorithmLog

AlgorithmLog factory

Returns

AlgorithmLog

class colda.utils.log.log_factory.GetWorkflowLog

Bases: AbstractLogFactory

classmethod get_instance() WorkflowLog

WorkflowLog factory

Returns

WorkflowLog

colda.utils.log.workflow_log module

class colda.utils.log.workflow_log.WorkflowLog

Bases: BaseLog, AbstractLog

Workflow log is used to store the information from the workflow stage(train_workflow and test_workflow).

Methods

get_instance store_log get_log get_all_logs

classmethod delete()
get_all_logs()

For unittest, change this function later

classmethod get_instance() WorkflowLog

Singleton pattern. Get instance of current class.

Returns

WorkflowLog

get_log(user_id: str, task_id: str) str

get msgs from log.

Parameters

user_id : str task_id : str msgs : list[str] log_category : str=’main_test’

Returns

None

log_serialization()
store_log(user_id: str, task_id: str, msgs: list[str]) None

Store msgs to log.

Parameters

user_id : str task_id : str msgs : list[str] log_category : str=’main_test’

Returns

None

Module contents