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:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- Configuration Options Environment-Based Configuration: Allows easy configuration through environment variables or configuration files, simplifying setup in different environments (e.g., development, testing, production).
- 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.
- 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.
Metadata
Release files for adv-logging 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| adv_logging-0.0.4.tar.gz | 18.2 kB | Without provenance | Details for adv_logging-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| adv_logging-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for adv_logging-0.0.4-py3-none-any.whl |
Total release size: 33.9 kB
Release files / adv_logging-0.0.4.tar.gz
| Download URL | adv_logging-0.0.4.tar.gz |
|---|---|
| Size | 18.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb2ed079045877027cb19f15168e9a793a01dfc6c4601655ee847cc3a4be7fae
|
|
BLAKE2b-256 checksum How to use checksums |
27865f9f87d00b3c22b2380bf60e0e143eb9096c4d83a3512196d7f5ecf35d34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Release files / adv_logging-0.0.4-py3-none-any.whl
| Download URL | adv_logging-0.0.4-py3-none-any.whl |
|---|---|
| Size | 15.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93fd5b32712037d3d1461c3bc4ed1be0678599b3bfbc3888c427921d555f45cd
|
|
BLAKE2b-256 checksum How to use checksums |
5c1d974591006d0fe32c95d5b48f5413c464a9ee83ee4a8ad214cec6854933b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Security for adv-logging 0.0.4
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.