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.python_logger.PythonLogger(log_level: str)[source]

Bases: object

debug(info)[source]
error(info)[source]
info(info)[source]
warn(info)[source]
ssp.logger.python_logger.str_to_level(log_level)[source]
class ssp.logger.spark_logger.SparkLogger(app_name, sparksession=None)[source]

Bases: object

debug(info)[source]
error(info)[source]
info(info)[source]
warn(info)[source]
class ssp.logger.ssp_logger.SSPLogger(app_name, parsed_args, pipeline_name='Default', log_level='info', sparksession=None)[source]

Bases: object

Class 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

static add_script_details(message)[source]
debug(msg, subject='', send_mail=False)[source]
email(subject, contents, config_dir)[source]
error(msg, subject='', send_mail=False)[source]
info(msg, subject='', send_mail=False)[source]
lineno()[source]

Returns the current line number in your code

warning(msg, subject='', send_mail=False)[source]
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: