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 ox_formatter import OxFormatter
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.0.dev0.tar.gz
.
File metadata
- Download URL: maskerlogger-0.0.0.dev0.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 | 9b938db76cd31e473fdbd35caa7c5d8f690a0605661ad3b42ded0eca5ae78348 |
|
MD5 | ef30bdbf30671a56920ca267e41b7103 |
|
BLAKE2b-256 | e9ed23bb9ad22c978f47743a8ff7d0dead918ad2b0a1eb02cdf1f188a1ef9866 |
File details
Details for the file maskerlogger-0.0.0.dev0-py3-none-any.whl
.
File metadata
- Download URL: maskerlogger-0.0.0.dev0-py3-none-any.whl
- Upload date:
- Size: 20.5 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 | 55737953c0b5a2d018103e69231143392fe39a67522da11ad8b030da41be64aa |
|
MD5 | b4d93520c476834e53ae04b4be6b968b |
|
BLAKE2b-256 | 2de8c8c78709da72568f6b46f92d2ae1d579642350f15eeb1025f172a805ba0f |