{ "info": { "author": "Steffen Ryll", "author_email": "steffen.ryll@gmx.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Topic :: System :: Logging" ], "description": "

\"SwiftyBeaver\"
Colorful, extensible, lightweight logging for Swift 2 & 3 as well as Python 2 & 3.
Great for servers with support for cloud platforms.\n

\nSwift Version |\nDocs |\nWebsite |\nSlack |\nTwitter |\nLicense\n
\n

\n\n

\n[![Language Swift 2](https://img.shields.io/badge/Language-Python%202%20&%203-orange.svg)](https://www.python.org) [![Slack Status](https://slack.swiftybeaver.com/badge.svg)](https://slack.swiftybeaver.com)\n

\n----\n\nConveniently log to the SwiftyBeaver Platform using the built-in Python logging library.\n\n## Installation\n\nSimply install SwiftyBeaver using `pip`:\n\n```sh\n$ pip install swiftybeaver\n```\n\nOr use `setup.py` after downloading it manually:\n\n```sh\n$ python setup.py install\n```\n\n## Usage\n\nSwiftyBeaver can be used just as any other Python logging handler:\n\n```python\nimport logging\nfrom swiftybeaver import SwiftyBeaverHandler\n\nsb_handler = SwiftyBeaverHandler('hThdK', 'sdfa...s3mx', 'dsgb...ghdX')\nlog = logging.Logger(__name__)\nlog.addHandler(sb_handler)\n\nlog.verbose(\"not so important\") // prio 1, VERBOSE in silver\nlog.debug(\"something to debug\") // prio 2, DEBUG in green\nlog.info(\"a nice information\") // prio 3, INFO in blue\nlog.warning(\"oh no, that won\u2019t be good\") // prio 4, WARNING in yellow\nlog.error(\"ouch, an error did occur!\") // prio 5, ERROR in red\n```\n\nThis logging handler sends logging events to the SwiftyBeaver Platform, which allows for viewing logs in it's OS X app and consuming via API. To learn more about SwiftyBeaver, visit the [main repository](https://github.com/SwiftyBeaver/SwiftyBeaver) and the [website](https://swiftybeaver.com).\n\n```python\n SwiftyBeaverHandler(app_id, app_secret, encryption_key, device=device)\n```\n\nIn order to successfully authenticate with the API, `app_id` and `app_secret` have to be provided during initialization. Additionally, `encryption_key` - the key used to encrypt the log entries - is required. `device` is an optional `dict` that should conform to the specification at http://docs.swiftybeaver.com/article/18-sending-logs-via-api. If it is omitted, a mock device will be used.\n\nPlease note that logs are transferred AES256CBC-encrypted and, unless configured otherwise, not after every log event. Each log record is associated with a certain number of points, depending on the log level. Log records will then be sent if the collected points are at least `minimum_threshold`. This system is in playe in order to prevent to many API calls during a short time.\n\n## Testing\n\nRun SwiftyBeaver unit tests using `setup.py`:\n\n```sh\n$ python setup.py test\n```\n\n## General Documentation\n\n**Getting Started:**\n\n- [Features](http://docs.swiftybeaver.com/article/7-introduction)\n- [Installation](http://docs.swiftybeaver.com/article/5-installation)\n- [Basic Setup](http://docs.swiftybeaver.com/article/6-basic-setup)\n\u200b\n\n**Logging Destinations:**\n\n- [Colored Logging to Xcode Console](http://docs.swiftybeaver.com/article/9-log-to-xcode-console)\n- [Colored Logging to File](http://docs.swiftybeaver.com/article/10-log-to-file)\n- [Encrypted Logging & Analytics to SwiftyBeaver Platform](http://docs.swiftybeaver.com/article/11-log-to-swiftybeaver-platform)\n\n\n**Stay Informed:**\n\n- [Official Website](https://swiftybeaver.com)\n- [Medium Blog](https://medium.com/swiftybeaver-blog)\n- [On Twitter](https://twitter.com/SwiftyBeaver)\n\nMore destination & system documentation is coming soon! \nGet support via Github Issues, email and [public Slack channel](https://slack.swiftybeaver.com).\n\n## License\n\nSwiftyBeaver for Python is released under the [MIT License](https://github.com/SwiftyBeaver/SwiftyBeaver/blob/master/LICENSE).", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/SwiftyBeaver/SwiftyBeaver-Python", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "SwiftyBeaver", "package_url": "https://pypi.org/project/SwiftyBeaver/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/SwiftyBeaver/", "project_urls": { "Homepage": "https://github.com/SwiftyBeaver/SwiftyBeaver-Python" }, "release_url": "https://pypi.org/project/SwiftyBeaver/0.1/", "requires_dist": null, "requires_python": "", "summary": "A Python implementation of the SwiftyBeaver Platform.", "version": "0.1" }, "last_serial": 2112277, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "5f8f867643ee6ccffbcb639e3cb048ae", "sha256": "201b2dc46b5dbbc9d6daf8158d68757453281653358818026db6feea27e354cf" }, "downloads": -1, "filename": "SwiftyBeaver-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5f8f867643ee6ccffbcb639e3cb048ae", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11856, "upload_time": "2016-05-12T10:35:57", "url": "https://files.pythonhosted.org/packages/2c/c9/baabdd316c1a9f6ec153a13b59b33e871b808e3c811a72addad64137709c/SwiftyBeaver-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4afcea3e0bc55216f04f4c77e8543cac", "sha256": "2d5f81367cd3528211028a84f4d4379524bbbb09d68166328876595e0c617334" }, "downloads": -1, "filename": "SwiftyBeaver-0.1.tar.gz", "has_sig": false, "md5_digest": "4afcea3e0bc55216f04f4c77e8543cac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7182, "upload_time": "2016-05-12T10:36:29", "url": "https://files.pythonhosted.org/packages/70/08/517135e9ebe7420a88621b2c0139ef9d84934b6b749802560d1b78c1e5ea/SwiftyBeaver-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5f8f867643ee6ccffbcb639e3cb048ae", "sha256": "201b2dc46b5dbbc9d6daf8158d68757453281653358818026db6feea27e354cf" }, "downloads": -1, "filename": "SwiftyBeaver-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5f8f867643ee6ccffbcb639e3cb048ae", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11856, "upload_time": "2016-05-12T10:35:57", "url": "https://files.pythonhosted.org/packages/2c/c9/baabdd316c1a9f6ec153a13b59b33e871b808e3c811a72addad64137709c/SwiftyBeaver-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4afcea3e0bc55216f04f4c77e8543cac", "sha256": "2d5f81367cd3528211028a84f4d4379524bbbb09d68166328876595e0c617334" }, "downloads": -1, "filename": "SwiftyBeaver-0.1.tar.gz", "has_sig": false, "md5_digest": "4afcea3e0bc55216f04f4c77e8543cac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7182, "upload_time": "2016-05-12T10:36:29", "url": "https://files.pythonhosted.org/packages/70/08/517135e9ebe7420a88621b2c0139ef9d84934b6b749802560d1b78c1e5ea/SwiftyBeaver-0.1.tar.gz" } ] }