Skip to main content

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

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. 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.

Files for pyawslog, version 0.1.5
Filename, size File type Python version Upload date Hashes
Filename, size pyawslog-0.1.5-py3-none-any.whl (3.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pyawslog-0.1.5.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page