Skip to main content

No project description provided

Project description

MaskerLoggerTitle

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

maskerlogger-0.0.1.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

maskerlogger-0.0.1-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

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

Hashes for maskerlogger-0.0.1.tar.gz
Algorithm Hash digest
SHA256 92f6e0dc2af45466f4a0bbdefeca927a1a28d25936a298ebb152c0af00848c8f
MD5 f7202139cc1d8e680684ddb1701414b8
BLAKE2b-256 bebe78675383196ed81e76f1be902aee7ab238be7aea15e9c2ac050588ef4883

See more details on using hashes here.

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

Hashes for maskerlogger-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2f767d869f95f5f76e70430b7e0f42dfd7523dab0c5b546157a1fc321a719b58
MD5 5be34c3cd7e2fefbc683f3da459fc5e5
BLAKE2b-256 f5d4b739d945f10305755f29ed7f31005821e48c5461d28a633f6a935bf3c56a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page