Skip to content

debug_connector

qoa4ml.connector.debug_connector

Classes

DebugConnector

DebugConnector provides a connector for debugging purposes, enabling the logging of messages.

Parameters:

Name Type Description Default
config
DebugConnectorConfig

Configuration settings for the debug connector.

required

Attributes:

Name Type Description
silence bool

Flag to suppress debugging output if set to True.

Methods:

Name Description
send_report

Send and debug the message.

Functions
__init__(config)

Initialize an instance of DebugConnector.

Parameters:

Name Type Description Default
config DebugConnectorConfig

Configuration settings for the debug connector.

required
send_report(body_message)

Send and debug the message.

Parameters:

Name Type Description Default
body_message str

The message body to be sent and debugged.

required
Notes

If silence is set to False, the message will be logged for debugging purposes.