No project description provided
Project description
Masker Logger
The Best Logger Formatter to prevent leaks in you python logs!
Getting started
This formatter is based on the common logging.Formatter
module.
For each record, before the log is printed (to any source - file/stdout/etc),
The formatter will prevent you from leaking sensetive data.
Install the library
pip install maskerlogger
Basic Usage
Like any formatter - just init your logger handler with the MaskerLogger formatter.
from maskerlogger import MaskerFormatter
logger = logging.getLogger('logger')
logger.setLevel(logging.DEBUG)
handler = logging.StreamHandler()
handler.setFormatter(
MaskerFormatter("%(asctime)s %(name)s %(levelname)s %(message)s"))
logger.addHandler(handler)
The Config File
Here all the magic happen!
We based our tool on the great Gitleaks tool, and we are using their default config.
Default config can be found here
Good luck!
Brought to you by OX Security
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file maskerlogger-0.0.1.tar.gz
.
File metadata
- Download URL: maskerlogger-0.0.1.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92f6e0dc2af45466f4a0bbdefeca927a1a28d25936a298ebb152c0af00848c8f |
|
MD5 | f7202139cc1d8e680684ddb1701414b8 |
|
BLAKE2b-256 | bebe78675383196ed81e76f1be902aee7ab238be7aea15e9c2ac050588ef4883 |
File details
Details for the file maskerlogger-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: maskerlogger-0.0.1-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f767d869f95f5f76e70430b7e0f42dfd7523dab0c5b546157a1fc321a719b58 |
|
MD5 | 5be34c3cd7e2fefbc683f3da459fc5e5 |
|
BLAKE2b-256 | f5d4b739d945f10305755f29ed7f31005821e48c5461d28a633f6a935bf3c56a |