Skip to main content

Shadowlogger

Simple wrapper for built-in logger module which intercepts all logs and shadows them, preventing sensitive information from being leaked.


img.png

Upload Python Package


Installation

pip install shadowlogger

Usage

import shadowlogger

# Activate shadowlogger
shadowlogger.manager.install()

# Deactivate shadowlogger
shadowlogger.manager.uninstall()

or

from shadowlogger.shadowlogger import ShadowLogger


class MyCustomLogger(ShadowLogger):
    # override these to customize the logger
    prefix: str
    name: str
    message_format: str
    log_level: int
    
    # override this to handle the formatted message
    def handle_message(self, formatted_message: str, level_name: str):
        pass

Testing

python -m unittest discover -s tests

Metadata

Release files for shadowlogger 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shadowlogger 0.1.1
File Size Uploaded Provenance Actions
shadowlogger-0.1.1.tar.gz 19.7 kB Without provenance Details for shadowlogger-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for shadowlogger 0.1.1
File Interpreter ABI Platform Actions
shadowlogger-0.1.1-py3-none-any.whl Python 3 none any Details for shadowlogger-0.1.1-py3-none-any.whl

Total release size: 39.0 kB

Release files / shadowlogger-0.1.1.tar.gz

Download URL shadowlogger-0.1.1.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d5e6358007fa961038411ca9a146ca52f077b1672f6d5ac30985dfb27d757a2a
BLAKE2b-256 checksum
How to use checksums
a5af3c233234d2838abf9d49774c53ad98d3b8f67fe4831a97d5f527ce0f63bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release files / shadowlogger-0.1.1-py3-none-any.whl

Download URL shadowlogger-0.1.1-py3-none-any.whl
Size 19.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b739feaf1007c14d31b8e0d71913e30720c36c202da8daddb2974c524d32a26
BLAKE2b-256 checksum
How to use checksums
ccfa0c4f9afc0429d013a35f6770ed06696afc59007f9b70d7d074ec1caa6763
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Security for shadowlogger 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page