A structured JSON logger that seamlessly interoperates with AWS Cloudwatch
Reason this release was yanked:
It says dev for a reason
Project description
#Overview
This package provides structured logging faculties designed to facilitate easy log querying in CloudWatch. These faculties
are provided via extension of the native python logging libary. In addition to provided access to JSON formatted logging
through native python logging syntax, this package also provides AWS Service (e.g. Lambda) specific LoggerAdapaters that allow
for the easy addition of runtime specific metadata (e.g. Lambda requestId, ECS task id, etc). Once created, the logger
can be easily used with: logger.info("msg", extra={"field_name": "field_value"})
Example
Use like:
import os
import src.cloudwatch_logging as cloudwatch_logging
# Setup logging
LOGGER, ADAPTER = cloudwatch_logging.create_logger("your_logger_name")
Development
Setup
This is a pure Python library; it can easily be installed using pip install cloudwatch_logging
Test
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cloudwatch-logging-1.0.0.dev1.tar.gz
.
File metadata
- Download URL: cloudwatch-logging-1.0.0.dev1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e45e4cf46f0a048266f1301e0fbd5fcb4e3b78723e304dac6f76378fb9ec6594 |
|
MD5 | 9139e58c609af613660878caeee8bfbe |
|
BLAKE2b-256 | 18e9ca8b1dc67322c15417ced5ce1441c70cdb216ecc3e26023de2c69eb15da4 |
File details
Details for the file cloudwatch_logging-1.0.0.dev1-py3-none-any.whl
.
File metadata
- Download URL: cloudwatch_logging-1.0.0.dev1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1ec9ba41c78aea6579ed645dbbe87dcb2c0928b9b74384608fc284bd7028e63 |
|
MD5 | f09d0bef46042dc5c4e47955623c5b9b |
|
BLAKE2b-256 | ab31592ac4c759c9fd876c8513f0672d5157eba9e75fcf0c3736bcb5be10c5c3 |