{"id":24482907,"url":"https://github.com/marcy-terui/kflogs","last_synced_at":"2025-04-13T16:50:22.316Z","repository":{"id":62574136,"uuid":"89451480","full_name":"marcy-terui/kflogs","owner":"marcy-terui","description":"Amazon Kinesis Firehose logging handler and utilities","archived":false,"fork":false,"pushed_at":"2020-02-20T01:36:21.000Z","size":4,"stargazers_count":9,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T07:47:52.931Z","etag":null,"topics":["aws","aws-lambda","kinesis-firehose","logging","python"],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/kflogs","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcy-terui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-26T07:28:56.000Z","updated_at":"2021-09-14T15:03:47.000Z","dependencies_parsed_at":"2022-11-03T18:34:21.447Z","dependency_job_id":null,"html_url":"https://github.com/marcy-terui/kflogs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcy-terui%2Fkflogs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcy-terui%2Fkflogs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcy-terui%2Fkflogs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcy-terui%2Fkflogs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcy-terui","download_url":"https://codeload.github.com/marcy-terui/kflogs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248749825,"owners_count":21155679,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-lambda","kinesis-firehose","logging","python"],"created_at":"2025-01-21T12:15:52.204Z","updated_at":"2025-04-13T16:50:22.283Z","avatar_url":"https://github.com/marcy-terui.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"kflogs\n=======\n\n[![Version](https://img.shields.io/pypi/v/kflogs.svg)](https://pypi.python.org/pypi/kflogs)\n\n# Description\n\nAmazon Kinesis Firehose logging handler and utilities.\n\n# Requirements\n\n- Python2.7 or higher\n- pip\n\n# Installation\n\n## PyPI\n\n```sh\npip install kflogs\n```\n\n# Usage\n\n#### Sample Code\n```python\nimport logging\nimport kflogs\n\nlogger = logging.getLogger('foo')\nhandler = kflogs.KinesisFirehoseHandler(stream_name='bar')\nhandler.setFormatter(kflogs.SimpleJsonFormatter())\nlogger.addHandler(handler)\n\nlogger.warning('Warnig!!')\n```\n\n#### Sample output\n```json\n{\n  \"msecs\": 146.5139389038086,\n  \"args\": [],\n  \"name\": \"foo\",\n  \"thread\": 140735094612736,\n  \"created\": 1492418072.146514,\n  \"process\": 52942, \"threadName\":\n  \"MainThread\", \"module\":\n  \"test\", \"filename\":\n  \"test.py\", \"levelno\": 30,\n  \"processName\": \"MainProcess\",\n  \"pathname\": \"test.py\",\n  \"lineno\": 11,\n  \"exc_text\": null,\n  \"exc_info\": null,\n  \"funcName\": \"\u003cmodule\u003e\",\n  \"relativeCreated\": 884.4590187072754,\n  \"levelname\": \"WARNING\",\n  \"msg\": \"Warnig!!\"\n}\n```\n\nDevelopment\n-----------\n\n-   Source hosted at [GitHub](https://github.com/marcy-terui/kflogs)\n-   Report issues/questions/feature requests on [GitHub\n    Issues](https://github.com/marcy-terui/kflogs/issues)\n\nPull requests are very welcome! Make sure your patches are well tested.\nIdeally create a topic branch for every separate change you make. For\nexample:\n\n1.  Fork the repo\n2.  Create your feature branch (`git checkout -b my-new-feature`)\n3.  Commit your changes (`git commit -am 'Added some feature'`)\n4.  Push to the branch (`git push origin my-new-feature`)\n5.  Create new Pull Request\n\nAuthors\n-------\n\nCreated and maintained by [Masashi Terui](https://github.com/marcy-terui) (\u003cmarcy9114@gmail.com\u003e)\n\nLicense\n-------\n\nMIT License (see [LICENSE](https://github.com/marcy-terui/kflogs/blob/master/LICENSE))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcy-terui%2Fkflogs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcy-terui%2Fkflogs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcy-terui%2Fkflogs/lists"}