Skip to main content

A Python logging library designed for data professionals and developers who need reliable, secure logging with minimal setup.

Project description



:page_with_curl: Table of Contents
  1. About The Project
  2. Getting Started
  3. Contributors
  4. Acknowledgments

:mega: About The Project

A Python logging library designed for data professionals and developers who need reliable, secure logging with minimal setup. It extends Python's standard logging module with production-ready features commonly needed in data engineering and application development. It includes features like sensitive data masking, log rotation, asynchronous logging, rate limiting, and dynamic configuration, all while remaining lightweight and easy to use.

:bulb: Features

  • Sensitive Data Masking: Automatically masks predefined sensitive fields (e.g., password, token) in logs.
  • Log Filtering: Filter logs based on specific keywords.
  • Dynamic Masking Control: Enable or disable masking on a per-log basis using the mask parameter.
  • Performance Metrics: Track logs per second for insights into logging activity.
  • Interactive Log Viewer: View logs in a structured, styled table using the rich library.
  • Rate Limiting: Avoid repetitive logs of the same message within a specified interval.
  • Log Rotation: Supports rotating log files based on file size, with configurable backup counts.
  • Asynchronous Logging: Offload logging to a background thread for improved performance.
  • JSON Log Formatting: Optional structured JSON logging for integration with log aggregation tools.
  • Dynamic Log Level Adjustments: Update logger settings (e.g., log level) dynamically at runtime.
  • Reusable Global Logger: Easily access a shared logger across multiple modules with get_logger.
  • Color-Coded Logs: Enable rich integration for visually enhanced terminal output.
  • CLI Log Viewer (Static/Live): Log viewer using CLI, also supports live viewer and detects for changes.
  • Custom Log Level: Runtime custom log level injection (e.g. SECURITY, AUDIT)

:pushpin: Getting Started

Installation

Install:

pip install pylogshield

Upgrade:

pip install --upgrade pylogshield

Documentation

Full developer docs with API reference, usage, and model schema:

:family: Contributors

All contributions are welcome. If you have a suggestion that would make this better, please fork the repo and create a merge request. You can also simply open an issue with the label 'enhancement'.

Don't forget to give the project a star! Thanks again!

:large_orange_diamond: View all contributors

(back to top)

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

pylogshield-0.0.1.tar.gz (511.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylogshield-0.0.1-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

Details for the file pylogshield-0.0.1.tar.gz.

File metadata

  • Download URL: pylogshield-0.0.1.tar.gz
  • Upload date:
  • Size: 511.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for pylogshield-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9820bdd52c2e00376a11ec32cd68b7ff8f998b66b1a7aa7c03264991a7260251
MD5 5383d5e983b1ba14aafd44191c94559b
BLAKE2b-256 99039f3d81d4ab60fa9cd09bd3e7530884329a24ca1f627df92f074c3897ebbb

See more details on using hashes here.

File details

Details for the file pylogshield-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pylogshield-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 25.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for pylogshield-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 296ffa9b9804aae8792515112c8cdb7ccf267fc48b3e0fdf33b943d03e1e2737
MD5 055db1c8d930e37dda4dcf6f3c24ef26
BLAKE2b-256 8da9c702ca1b1b43bf91d5dafa45c3ba82835e1d9a5f854f3069118b0f74d426

See more details on using hashes here.

Supported by

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