Skip to main content

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

Project description


📋 Table of Contents

📣 Overview

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.

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

📌 Quick Start

Installation

Install:

pip install pylogshield

Upgrade:

pip install --upgrade pylogshield

Documentation

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

👪 Contributing

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!

🔶 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.3.tar.gz (523.7 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.3-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pylogshield-0.0.3.tar.gz
  • Upload date:
  • Size: 523.7 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.3.tar.gz
Algorithm Hash digest
SHA256 92a9bf304c8e1f605f0706d66191856628c2c2b3532d103a14efb5fe32d736a1
MD5 fa717bd6d815c0076c759b0545de962d
BLAKE2b-256 2f3facb6d3f0e9e0c51ac7c42a20e39f6278096400608986ef848dfd43dda282

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylogshield-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 25.0 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a34ff78987c315713a4cdaed03ce711a3090f502376f5094ecf876acd02ed90c
MD5 924a4a74e3f179aaf759f8c5dc84da2f
BLAKE2b-256 4dd665cd3cfa0cd045c6cccfdad17544606e3cf227f2bf065898f4a1ee00fede

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