Python AWS Custom Log
Project description
python aws custom log
A Python package to log message into aws cloud.
Introduction
A Python package to log message into aws cloud.
Installation
pip3 install pyawslog
Usage
from pyawslog import log
logger = log(region_name='region name',
aws_access_key_id='access key',
aws_secret_access_key='secret key',
endpoint_url='https://logs.<region_str>.amazonaws.com')
LOG_GROUP='custom group name'
LOG_STREAM='custom stream name'
logger.create_log_group(LOG_GROUP)
logger.create_log_stream(LOG_GROUP, 'aws')
logger.log_message(LOG_GROUP, LOG_STREAM, 'Hello world, log message!')
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
History
TODO: Write history
Credits
TODO: Write credits
License
TODO: Write license ]]></content> <tabTrigger>readme</tabTrigger> </snippet>
Contact
Please submit an issue if you encounter a bug and please email any questions or requests to catchmaurya@gmail.com
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
pyawslog-0.1.5.tar.gz
(2.3 kB
view hashes)