pyloggerhelper


Namepyloggerhelper JSON
Version 0.0.4 PyPI version JSON
download
home_page
Summaryjson logger helper
upload_time2023-01-07 04:55:24
maintainer
docs_urlNone
authorhsz
requires_python
licenseMIT License
keywords logger proxy
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pyloggerhelper

json格式log的帮助程序

## 使用

```python
from pyloggerhelper import log


def testrun():
    log.info("test")


if __name__ == "__main__":
    log.initialize_for_app("testapp",log_level="INFO",binds={"IP":"0.0.0.0"})
    testrun()
```

# 0.0.4

## 新特性

+ 增加参数`json_render_kws`用于设置json的输出格式

# 0.0.3

## 优化

+ 去掉了`logger`这个意义不明的字段,改为使用`app_name`
+ `timestamp`改为`time`避免歧义

# 0.0.2

## 新特性

+ 怎加了初始化参数`binds:Dict[str,Any]`用于绑定固定字段

# 0.0.1

项目创建
MIT License

Copyright (c) 2021 Python-Tools

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "pyloggerhelper",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "logger,proxy",
    "author": "hsz",
    "author_email": "hsz1273327@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/9b/32/d651030a83ba5cc77aa389ecae66855bd260d2c719eece6be1400d6f9fe8/pyloggerhelper-0.0.4.tar.gz",
    "platform": null,
    "description": "# pyloggerhelper\n\njson\u683c\u5f0flog\u7684\u5e2e\u52a9\u7a0b\u5e8f\n\n## \u4f7f\u7528\n\n```python\nfrom pyloggerhelper import log\n\n\ndef testrun():\n    log.info(\"test\")\n\n\nif __name__ == \"__main__\":\n    log.initialize_for_app(\"testapp\",log_level=\"INFO\",binds={\"IP\":\"0.0.0.0\"})\n    testrun()\n```\n\n# 0.0.4\n\n## \u65b0\u7279\u6027\n\n+ \u589e\u52a0\u53c2\u6570`json_render_kws`\u7528\u4e8e\u8bbe\u7f6ejson\u7684\u8f93\u51fa\u683c\u5f0f\n\n# 0.0.3\n\n## \u4f18\u5316\n\n+ \u53bb\u6389\u4e86`logger`\u8fd9\u4e2a\u610f\u4e49\u4e0d\u660e\u7684\u5b57\u6bb5,\u6539\u4e3a\u4f7f\u7528`app_name`\n+ `timestamp`\u6539\u4e3a`time`\u907f\u514d\u6b67\u4e49\n\n# 0.0.2\n\n## \u65b0\u7279\u6027\n\n+ \u600e\u52a0\u4e86\u521d\u59cb\u5316\u53c2\u6570`binds:Dict[str,Any]`\u7528\u4e8e\u7ed1\u5b9a\u56fa\u5b9a\u5b57\u6bb5\n\n# 0.0.1\n\n\u9879\u76ee\u521b\u5efa\nMIT License\n\nCopyright (c) 2021 Python-Tools\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "json logger helper",
    "version": "0.0.4",
    "split_keywords": [
        "logger",
        "proxy"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "21c320307836c3e3151cbf218de438c12f102e26c8bad58bcb163e5df4346609",
                "md5": "dae6dd4a2a23699bf384b33d0e1d3b0c",
                "sha256": "7f9f4ebdcdd27156c924bc7bc027471af0d7fa6061d48444ad023d8c347d8b41"
            },
            "downloads": -1,
            "filename": "pyloggerhelper-0.0.4-py3.11.egg",
            "has_sig": false,
            "md5_digest": "dae6dd4a2a23699bf384b33d0e1d3b0c",
            "packagetype": "bdist_egg",
            "python_version": "0.0.4",
            "requires_python": null,
            "size": 3606,
            "upload_time": "2023-01-07T04:55:22",
            "upload_time_iso_8601": "2023-01-07T04:55:22.402375Z",
            "url": "https://files.pythonhosted.org/packages/21/c3/20307836c3e3151cbf218de438c12f102e26c8bad58bcb163e5df4346609/pyloggerhelper-0.0.4-py3.11.egg",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b25cfc9986572df227a15c1c5bfa8b0a055f2d7c3ab7e34564677f818d9d3a99",
                "md5": "703e1eb07157400ee8cfb9d4e6a48672",
                "sha256": "01ea836a5281714bc28c55ef4c23ebc7eef5a1f731eac2e47b0715ad2cedcd71"
            },
            "downloads": -1,
            "filename": "pyloggerhelper-0.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "703e1eb07157400ee8cfb9d4e6a48672",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4561,
            "upload_time": "2023-01-07T04:55:20",
            "upload_time_iso_8601": "2023-01-07T04:55:20.528332Z",
            "url": "https://files.pythonhosted.org/packages/b2/5c/fc9986572df227a15c1c5bfa8b0a055f2d7c3ab7e34564677f818d9d3a99/pyloggerhelper-0.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9b32d651030a83ba5cc77aa389ecae66855bd260d2c719eece6be1400d6f9fe8",
                "md5": "4557b02fd09469524dc9efdf41787f67",
                "sha256": "7ec5f38e5851cc27c6f5051309b5cacf775209dc83ca1c1c389631bf5cd43dca"
            },
            "downloads": -1,
            "filename": "pyloggerhelper-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "4557b02fd09469524dc9efdf41787f67",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3726,
            "upload_time": "2023-01-07T04:55:24",
            "upload_time_iso_8601": "2023-01-07T04:55:24.002730Z",
            "url": "https://files.pythonhosted.org/packages/9b/32/d651030a83ba5cc77aa389ecae66855bd260d2c719eece6be1400d6f9fe8/pyloggerhelper-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-07 04:55:24",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "pyloggerhelper"
}
        
hsz
Elapsed time: 0.07922s