Name | tealogger JSON |
Version |
0.9.0
JSON |
| download |
home_page | None |
Summary | Tea Logger |
upload_time | 2024-10-11 20:49:48 |
maintainer | None |
docs_url | None |
author | TeaFTI |
requires_python | >=3.10 |
license | MIT License Copyright (c) 2023 TeaFTI 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. |
keywords |
tealogger
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
|
# Tea Logger
Python Tea Logger
## Table of Content
* [Overview](#overview)
* [Quick Start](#quick-start)
* [Level](#level)
* [Note](#note)
* [Reference](#reference)
## Overview
Tea Logger is a simple logging package for Python.
### Quick Start
Install the `tealogger` package, available on
[Python Package Index (PyPI)](https://pypi.org/).
```bash
pip install tealogger
```
Import the `tealogger` package to use.
```python
import tealogger
# Set the logging level (optional)
tealogger.setLevel(tealogger.DEBUG)
tealogger.warning("WARNING: Message")
```
### Level
From high (`CRITICAL`) to low (`DEBUG`).
* `CRITICAL` = 50
* `FATAL` = `CRITICAL` (Do not use, use `CRITICAL` instead)
* `ERROR` = 40
* `WARNING` = 30
* `WARN` = `WARNING` (Deprecated, use `WARNING` instead)
* `INFO` = 20
* `DEBUG` = 10
* `NOTSET` = 0
* `EXCEPTION`
## Note
### Child Logger
When creating a child logger, if there are no handler(s) added, it will
inherit the handle(s) from the parent. But if the parent logger itself
is set to a higher level, the higher level gets respected. Since the
parent handler(s) attached to the parent logger only output if the
parent logger allows it.
## Reference
* [logging - Logging facility for Python](https://docs.python.org/3/library/logging.html)
* [Logging HOWTO](https://docs.python.org/3/howto/logging.html)
* [Logging Cookbook](https://docs.python.org/3/howto/logging-cookbook.html)
Raw data
{
"_id": null,
"home_page": null,
"name": "tealogger",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "tealogger",
"author": "TeaFTI",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/e0/9e/a8a069d5ad0873cfb803e18ec9fd4edbbd5c4845ba74d8be46e2f9bb7cb2/tealogger-0.9.0.tar.gz",
"platform": null,
"description": "# Tea Logger\n\nPython Tea Logger\n\n## Table of Content\n* [Overview](#overview)\n * [Quick Start](#quick-start)\n * [Level](#level)\n* [Note](#note)\n* [Reference](#reference)\n\n## Overview\n\nTea Logger is a simple logging package for Python.\n\n### Quick Start\n\nInstall the `tealogger` package, available on\n[Python Package Index (PyPI)](https://pypi.org/).\n\n```bash\npip install tealogger\n```\n\nImport the `tealogger` package to use.\n\n```python\nimport tealogger\n\n# Set the logging level (optional)\ntealogger.setLevel(tealogger.DEBUG)\n\ntealogger.warning(\"WARNING: Message\")\n```\n\n### Level\n\nFrom high (`CRITICAL`) to low (`DEBUG`).\n\n* `CRITICAL` = 50\n* `FATAL` = `CRITICAL` (Do not use, use `CRITICAL` instead)\n* `ERROR` = 40\n* `WARNING` = 30\n* `WARN` = `WARNING` (Deprecated, use `WARNING` instead)\n* `INFO` = 20\n* `DEBUG` = 10\n* `NOTSET` = 0\n* `EXCEPTION`\n\n## Note\n\n### Child Logger\n\nWhen creating a child logger, if there are no handler(s) added, it will\ninherit the handle(s) from the parent. But if the parent logger itself\nis set to a higher level, the higher level gets respected. Since the\nparent handler(s) attached to the parent logger only output if the\nparent logger allows it.\n\n## Reference\n\n* [logging - Logging facility for Python](https://docs.python.org/3/library/logging.html)\n* [Logging HOWTO](https://docs.python.org/3/howto/logging.html)\n* [Logging Cookbook](https://docs.python.org/3/howto/logging-cookbook.html)\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2023 TeaFTI 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. ",
"summary": "Tea Logger",
"version": "0.9.0",
"project_urls": {
"Bug Tracker": "https://github.com/TeaFTI/Python-TeaLogger/issues",
"Homepage": "https://github.com/TeaFTI/Python-TeaLogger"
},
"split_keywords": [
"tealogger"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "82e42136298ab2a5a49b0076e02febc6930cf375f8e201b7001aa612826d8401",
"md5": "50da877b5d12ec3d7bdec4d60abdfb4d",
"sha256": "a1e78b08dc352a9894bbc06a767e887396feb2929aae3d85da361ddf0a4b90ab"
},
"downloads": -1,
"filename": "tealogger-0.9.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "50da877b5d12ec3d7bdec4d60abdfb4d",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=3.10",
"size": 9198,
"upload_time": "2024-10-11T20:49:47",
"upload_time_iso_8601": "2024-10-11T20:49:47.481886Z",
"url": "https://files.pythonhosted.org/packages/82/e4/2136298ab2a5a49b0076e02febc6930cf375f8e201b7001aa612826d8401/tealogger-0.9.0-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e09ea8a069d5ad0873cfb803e18ec9fd4edbbd5c4845ba74d8be46e2f9bb7cb2",
"md5": "d52007e3ff3bd1ece489aa3678635a38",
"sha256": "711fc5e6d04f7df2a19542b5ed6688905afd7e7d21712eadf3b1e7e5824ac8b1"
},
"downloads": -1,
"filename": "tealogger-0.9.0.tar.gz",
"has_sig": false,
"md5_digest": "d52007e3ff3bd1ece489aa3678635a38",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 8430,
"upload_time": "2024-10-11T20:49:48",
"upload_time_iso_8601": "2024-10-11T20:49:48.462573Z",
"url": "https://files.pythonhosted.org/packages/e0/9e/a8a069d5ad0873cfb803e18ec9fd4edbbd5c4845ba74d8be46e2f9bb7cb2/tealogger-0.9.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-11 20:49:48",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "TeaFTI",
"github_project": "Python-TeaLogger",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"lcname": "tealogger"
}