![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
aws-logging-handlers
Advanced tools
Logging aws_logging_handlers to AWS services that support S3 and Kinesis stream logging with multiple threads
A python multithreaded logging handler package that streams records to AWS services objects with support for the following AWS services: * S3 * Kinesis
Supports gzip compression(in S3)
Prerequisites
Asynchronous multipart uploading relies on the ability to use multiple
threads #### Packages:
::
boto3
Installing
~~~~~~~~~~
Installation using pip
::
pip install aws-logging-handlers
Examples
~~~~~~~~
Stream log records to S3 and Kinesis
::
import logging
from aws_logging_handlers.S3 import S3Handler
from aws_logging_handlers.Kinesis import KinesisHandler
bucket="test_bucket" # The bucket should already exist
# The log will be rotated to a new object either when an object reaches 5 MB or when 120 seconds pass from the last rotation/initial logging
s3_handler = S3Handler("test_log", bucket, workers=3)
kinesis_handler = KinesisHandler('log_test', 'us-east-1', workers=1)
formatter = logging.Formatter('[%(asctime)s] %(filename)s:%(lineno)d} %(levelname)s - %(message)s')
s3_handler.setFormatter(formatter)
kinesis_handler.setFormatter(formatter)
logger = logging.getLogger('root')
logger.setLevel(logging.INFO)
logger.addHandler(s3_handler)
logger.addHandler(kinesis_handler)
for i in range(0, 100000):
logger.info("test info message")
logger.warning("test warning message")
logger.error("test error message")
logging.shutdown()
To be developed
---------------
- Support for asyncio
- Logging and upload metrics
License
-------
This project is licensed under the MIT License - see the `LICENSE.md`_
file for details
.. _LICENSE.md: LICENSE
FAQs
Logging aws_logging_handlers to AWS services that support S3 and Kinesis stream logging with multiple threads
We found that aws-logging-handlers demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.