{"repo":"oxsecurity/MaskerLogger","free":true,"listed":false,"github":"https://github.com/oxsecurity/MaskerLogger","clone":"git clone https://github.com/oxsecurity/MaskerLogger.git","description":"The Logger that will prevent your data leak","language":"Python","stars":110,"topics":["gitleaks","logging","mask-sensitive-details"],"license":"MIT","category":"analytics","readme_excerpt":"Masker Logger Keep Your logs safe! This formatter ensures the security of your logs and prevents sensitive data leaks. For example - Using this Formatter will print this line: logger.info(f'Dont Give Your {secrets} away') like this: Dont Give Your away Getting started This formatter utilizes the standard logging.Formatter module. Before printing each record to any destination (file, stdout, etc.), it ensures sensitive data is masked with asterisks to prevent leaks. Requirements MaskerLogger Version Python Version --------------------- ---------------- 1.0.0+ 3.10 - 3.13 < 1.0.0 3.9 - 3.13 Install the library Basic Usage Like any formatter - just init your logger handler with the MaskerLogger formatter. skip masking If, for some reason, you want to disable masking on a specific log line, use the SKIP MASK mechanism. redact Here’s a rewritten version suitable for inclusion in a README.md file: --- Partial Masking of Secrets If you prefer to mask only a portion of a secret (rather than its entire length), you can set the redact parameter in the formatter. The redact parameter specifies the percentage of the secret to be masked. Here’s an example of how to use it: In this example, 30% of the secret will be masked. Adjust the redact value as needed to suit your requirements. The Config File Here's where the magic happens! Our tool is built upon the powerful Gitleaks tool, leveraging its default configuration to scan for sensitive data leaks in repositories. You can find the defaul","default_branch":null,"files":null,"tree":[],"storefront":"/r/oxsecurity","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/oxsecurity/MaskerLogger/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}