Skip to main content

An advanced Python logging library with context, cloud support, and more

Project description

AdvancedLogger

The AdvancedLogger library provides a robust, flexible, and secure logging solution suitable for modern applications, especially those deployed in distributed or cloud environments. It helps developers and system administrators easily manage logs, ensure data privacy, comply with regulations, and integrate with popular log analysis tools.

The enhanced AdvancedLogger library is packed with a wide range of features to make logging comprehensive, efficient, and secure for modern applications. Here is the detailed list of features:

  1. Core Logging Features Multi-level Logging: Supports various log levels such as DEBUG, INFO, WARNING, ERROR, and CRITICAL. Asynchronous Logging: Uses ThreadPoolExecutor for non-blocking, asynchronous log writing, ensuring that logging does not slow down your application.
  2. Log Handlers and Destinations Console Logging: Outputs logs to the console, with optional color-coding for better readability. File Logging with Compression: Rotating File Handler: Supports log rotation to manage log file sizes and avoid excessive disk usage. Compressed File Archiving: Automatically compresses old log files to save disk space using gzip.
  3. Integration with Cloud Log Management Systems: AWS CloudWatch Handler: Sends logs directly to AWS CloudWatch for centralized log management. Splunk Handler: Sends logs to a Splunk HTTP Event Collector endpoint for real-time log monitoring.
  4. Log Formatting Options Custom Timestamp Formatting: Users can specify a custom timestamp format (e.g., "Date: --/--/-- Time: --.--.--") or use the standard logging time format. Colorized Logging: Optionally apply colors to log messages based on the severity level, making them easier to distinguish in the console. JSON Log Formatting: Supports structured logging in JSON format, making logs easier to parse and analyze using log management tools.
  5. Contextual and Traceable Logging Contextual Information: Attach additional context to each log message, such as request IDs, user information, or application state details. Unique Trace IDs: Optionally generate and include unique trace IDs for tracking and correlating log events across distributed systems.
  6. Security and Compliance Sensitive Data Masking: Automatically masks sensitive information (like credit card numbers, SSNs, and email addresses) to ensure privacy and compliance with data protection regulations. Audit Trails: Logs specific security-related events (such as initialization and critical changes) to a separate audit trail file for compliance and monitoring purposes.
  7. Advanced Filtering Content-Based Filtering: Users can define filters to include or exclude specific log messages based on criteria like message content, log level, or additional context fields.
  8. Configuration Options Environment-Based Configuration: Allows easy configuration through environment variables or configuration files, simplifying setup in different environments (e.g., development, testing, production).
  9. Error Handling and Resilience Graceful Error Handling: The logger can handle errors such as file write failures or losing connection to a remote logging service gracefully, without crashing the application. Fallback Mechanisms: Uses fallback strategies to ensure logging continuity when an error occurs in one of the handlers.
  10. Additional Utilities Audit Logging: Maintains a separate audit log file for critical events, useful for security and compliance tracking. Masking Patterns: Customizable patterns for masking sensitive data in log messages. Dynamic Context Updates: Ability to dynamically add or update context information for logs as the application runs.

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

adv_logging-0.0.4.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

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

adv_logging-0.0.4-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file adv_logging-0.0.4.tar.gz.

File metadata

  • Download URL: adv_logging-0.0.4.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for adv_logging-0.0.4.tar.gz
Algorithm Hash digest
SHA256 bb2ed079045877027cb19f15168e9a793a01dfc6c4601655ee847cc3a4be7fae
MD5 8b2dcd634f2521ffbef2279ccf469a56
BLAKE2b-256 27865f9f87d00b3c22b2380bf60e0e143eb9096c4d83a3512196d7f5ecf35d34

See more details on using hashes here.

File details

Details for the file adv_logging-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: adv_logging-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for adv_logging-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 93fd5b32712037d3d1461c3bc4ed1be0678599b3bfbc3888c427921d555f45cd
MD5 79f9eb1f9e1ac31d54daeb1ca50f86b1
BLAKE2b-256 5c1d974591006d0fe32c95d5b48f5413c464a9ee83ee4a8ad214cec6854933b9

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