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 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


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.0.dev0.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

maskerlogger-0.0.0.dev0-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

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

Hashes for maskerlogger-0.0.0.dev0.tar.gz
Algorithm Hash digest
SHA256 9b938db76cd31e473fdbd35caa7c5d8f690a0605661ad3b42ded0eca5ae78348
MD5 ef30bdbf30671a56920ca267e41b7103
BLAKE2b-256 e9ed23bb9ad22c978f47743a8ff7d0dead918ad2b0a1eb02cdf1f188a1ef9866

See more details on using hashes here.

File details

Details for the file maskerlogger-0.0.0.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for maskerlogger-0.0.0.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 55737953c0b5a2d018103e69231143392fe39a67522da11ad8b030da41be64aa
MD5 b4d93520c476834e53ae04b4be6b968b
BLAKE2b-256 2de8c8c78709da72568f6b46f92d2ae1d579642350f15eeb1025f172a805ba0f

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