python-victorialogs-handler
A high-performance Python log handler for VictoriaLogs.
Description
victorialogs-handler is a high-performance Python log handler tailored for VictoriaLogs. It integrates seamlessly with Python’s native logging module, allowing you to stream log events to a VictoriaLogs instance with minimal configuration.
- Non-blocking: Logs are stored in a buffer and later processed in a background thread.
- Hybrid trigger: Log processing is triggered by a ticker and/or when a size threshold is reached.
- Batching: Multiple logs are combined into one request to the log server to minimize the amount of requests.
- Complete logs: All fields of a log record are transmitted including exceptions and
extrafields. - Highly customizable: The handler's behavior is highly customizable (see also Documentation)
Installation
The handler can be installed with PIP from PyPI:
pip install victorialogs-handler
Quick start
Here is a quick example on how to use the handler in your Python script:
import logging
from vlogs_handler import VictoriaLogsHandler
# Create a custom logger with INFO level
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
# Add a handler for VictoriaLogs
vlogs_handler = VictoriaLogsHandler()
vlogs_handler.setLevel(logging.DEBUG)
logger.addHandler(vlogs_handler)
# Log example
logger.info("This is an info message")
Please see the directory /examples for additional examples on how to use the handler.
Documentation
The full documentation can be found here: Documentation.
Metadata
Release files for victorialogs-handler 0.1.0
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 |
|---|---|---|---|---|
| victorialogs_handler-0.1.0.tar.gz | 16.7 kB | Without provenance | Details for victorialogs_handler-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| victorialogs_handler-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for victorialogs_handler-0.1.0-py3-none-any.whl |
Total release size: 26.7 kB
Release files / victorialogs_handler-0.1.0.tar.gz
| Download URL | victorialogs_handler-0.1.0.tar.gz |
|---|---|
| Size | 16.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a36437bbee6bf69a7d0e9a6abb9b8345dd6e1ee8af1c7b27e91611e9094d7132
|
|
BLAKE2b-256 checksum How to use checksums |
49b80cfd035e219ce9e72a9cacda780342d50813a977365866563c536a876213
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.34.2
|
Release files / victorialogs_handler-0.1.0-py3-none-any.whl
| Download URL | victorialogs_handler-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aba369a74fddde8bdf3d8987c963e08314ea76f3005217146b53503b8ef02627
|
|
BLAKE2b-256 checksum How to use checksums |
20636f7567f0158f06f10ad66cce16661a434b9404aab860786b403a3205d1dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.34.2
|
Security for victorialogs-handler 0.1.0
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.