Log APIs

Log API is used to log and display all the info, error, warning and debug messages. To use log API you need to import BBSDK module. The method block_log_handler returns an instance of BlockLogHandler class which contains all methods to display different logs.

from pipelineblocksdk.api import BBSDK as sdk
logger = sdk.block_log_handler(block_params)

logger.info(msg) - This method is used to log and display messages as information.
logger.error(msg)- This method is used to log messages as error.
logger.warn(msg) - This method is used to log messages as warning.
logger.debug(msg) - This method is used to log debug related messages.