Skip to content

mabel.logging.log_formatter

Justin Joyce edited this page Oct 24, 2021 · 4 revisions

CLASS: LogFormatter (orig_formatter, suppress_color)

Remove sensitive data from records before saving to external logs. Note that the value is hashed using (SHA256) and only the first 8 characters of the hex-encoded hash are presented. This information allows values to be traced without disclosing the actual value.

The Sanitizer can only sanitize dictionaries, it doesn't sanitize strings, which could contain sensitive information We use the message id as a salt to further protect sensitive information.

Based On: https://github.com/joocer/cronicl/blob/main/cronicl/utils/sanitizer.py

format (record)

color_code (record)

hash_it (value_to_hash)

clean_record (dirty_record, colorize)

sanitize_record (record)


This file has been automatically generated, it is not the truth. If in doubt the code will tell you unambiguously what it does.

Clone this wiki locally