logging_utils

Logging utils to ease log calls

class logging_utils.ContextFilter[source]

Context filter for logging methods to send logs to bugsnag

bugsnag_before_notify_callback(notification=None)[source]

Filter unwanted notifications here

filter(record)[source]

Determine if the specified record is to be logged.

Is the specified record to be logged? Returns 0 for no, nonzero for yes. If deemed appropriate, the record may be modified in-place.

static filter_log_lines(log)[source]

Filter log lines

get_and_save_install_id(is_location_screen=False)[source]

Obtain an install identification

static get_bugsnag_api()[source]

Gets bugsnag API key

get_url_for_id_request()[source]

Constructs bugsnag url

send_install_result(result)[source]

Sends install result to bugsnag server

class logging_utils.Singleton[source]

Single instance