kernelfoundry.algorithm.utils.database_log_handler

Classes

DatabaseLogHandler(job_id[, level])

Custom logging handler that writes log records to the database.

class kernelfoundry.algorithm.utils.database_log_handler.DatabaseLogHandler(job_id: int, level=0)[source]

Custom logging handler that writes log records to the database.

__init__(job_id: int, level=0)[source]

Initializes the instance - basically setting the formatter to None and the filter list to empty.

emit(record)[source]

Emit a log record to the database.

flush()[source]

Flush the log buffer to the database.

close()[source]

Close the handler and flush any remaining logs.