ssp.logger¶
-
ssp.logger.pretty_print.print_debug(*args)[source]¶ Prints the string in blue color :param args: user string information :return: stdout
-
ssp.logger.pretty_print.print_error(*args)[source]¶ Prints the string in red color :param args: user string information :return: stdout
-
ssp.logger.pretty_print.print_info(*args)[source]¶ Prints the string in green color :param args: user string information :return: stdout
-
ssp.logger.pretty_print.print_warn(*args)[source]¶ Prints the string in yellow color :param args: user string information :return: stdout
-
class
ssp.logger.ssp_logger.SSPLogger(app_name, parsed_args, pipeline_name='Default', log_level='info', sparksession=None)[source]¶ Bases:
objectClass that wraps all logging functionality. It supports following: - Spark logging, if sparksession is provided or it ognores it - Python way of logging into a file “log.txt” - Sends the email based on the user flag
-
class
ssp.logger.yagmail.YagMail[source]¶ Bases:
object-
static
email_notifier_mannual(from_address, to_address, from_email_password, subject, contents, attachments=None)[source]¶ Sends mail notification based on given email details along with password :param from_address: :param to_address: :param from_email_password: :param subject: :param contents: :param attachments: :return:
-
static