Name | python-mylog JSON |
Version |
0.10.0
JSON |
| download |
home_page | |
Summary | My logger library. |
upload_time | 2024-01-27 13:25:32 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.10 |
license | GPL-3.0-or-later |
keywords |
logger
log
logging
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# mylog
[![Hits-of-Code](https://hitsofcode.com/github/koviubi56/mylog?branch=main)](https://hitsofcode.com/github/koviubi56/mylog/view?branch=main)
![Codecov](https://img.shields.io/codecov/c/github/koviubi56/mylog)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
![semantic-release](https://img.shields.io/badge/%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)
![PyPI - License](https://img.shields.io/pypi/l/python-mylog)
![PyPI](https://img.shields.io/pypi/v/python-mylog)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/python-mylog)
![PyPI - Format](https://img.shields.io/pypi/format/python-mylog)
![PyPI - Implementation](https://img.shields.io/pypi/implementation/python-mylog)
![GitHub Workflow Status Tests](https://img.shields.io/github/actions/workflow/status/koviubi56/mylog/tests.yml?label=tests)
A simple logging library for Python.
## Example/Getting started
First, install it with `pip install python-mylog`. [_Need more help?_](https://packaging.python.org/en/latest/tutorials/installing-packages/)
```py
import mylog
mylog.root.info("Hello, world!")
# Output: <nothing>
# Why? Because the threshold is set to WARNING.
# Try this:
mylog.root.warning("Hello, world!")
# Output: [root WARNING 2023-12-23 13:39:16.127495+00:00 line: 00001] Hello, world!
# Or
mylog.root.threshold = mylog.Level.DEBUG
mylog.root.info("Hello, world!")
# Output: [root INFO 2023-12-23 13:39:34.231029+00:00 line: 00001] Hello, world!
```
## API reference
For the API reference see the docstrings.
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
## License
[GNU GPLv3.0+](LICENSE)
**Please note, that by contributing to mylog, you accept the DCO. [More info](CONTRIBUTING.md#dco)**
Raw data
{
"_id": null,
"home_page": "",
"name": "python-mylog",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "",
"keywords": "logger,log,logging",
"author": "",
"author_email": "Koviubi56 <koviubi56@duck.com>",
"download_url": "https://files.pythonhosted.org/packages/7b/8a/d808f86db6ea974f7fc6f1b08047da9fbf3d67e050b79db8e1f5c1052b37/python_mylog-0.10.0.tar.gz",
"platform": null,
"description": "# mylog\n\n[![Hits-of-Code](https://hitsofcode.com/github/koviubi56/mylog?branch=main)](https://hitsofcode.com/github/koviubi56/mylog/view?branch=main)\n![Codecov](https://img.shields.io/codecov/c/github/koviubi56/mylog)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n![semantic-release](https://img.shields.io/badge/%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)\n![PyPI - License](https://img.shields.io/pypi/l/python-mylog)\n![PyPI](https://img.shields.io/pypi/v/python-mylog)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/python-mylog)\n![PyPI - Format](https://img.shields.io/pypi/format/python-mylog)\n![PyPI - Implementation](https://img.shields.io/pypi/implementation/python-mylog)\n![GitHub Workflow Status Tests](https://img.shields.io/github/actions/workflow/status/koviubi56/mylog/tests.yml?label=tests)\n\nA simple logging library for Python.\n\n## Example/Getting started\n\nFirst, install it with `pip install python-mylog`. [_Need more help?_](https://packaging.python.org/en/latest/tutorials/installing-packages/)\n\n```py\nimport mylog\n\nmylog.root.info(\"Hello, world!\")\n# Output: <nothing>\n# Why? Because the threshold is set to WARNING.\n\n# Try this:\nmylog.root.warning(\"Hello, world!\")\n# Output: [root WARNING 2023-12-23 13:39:16.127495+00:00 line: 00001] Hello, world!\n\n# Or\nmylog.root.threshold = mylog.Level.DEBUG\nmylog.root.info(\"Hello, world!\")\n# Output: [root INFO 2023-12-23 13:39:34.231029+00:00 line: 00001] Hello, world!\n```\n\n## API reference\n\nFor the API reference see the docstrings.\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License\n\n[GNU GPLv3.0+](LICENSE)\n\n**Please note, that by contributing to mylog, you accept the DCO. [More info](CONTRIBUTING.md#dco)**\n",
"bugtrack_url": null,
"license": "GPL-3.0-or-later",
"summary": "My logger library.",
"version": "0.10.0",
"project_urls": {
"Bug Tracker": "https://github.com/koviubi56/mylog/issues",
"Release notes": "https://github.com/koviubi56/mylog/blob/main/CHANGELOG.md",
"Source": "https://github.com/koviubi56/mylog"
},
"split_keywords": [
"logger",
"log",
"logging"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2d43cf9d5cf2269e3bf318e03152954282c07847ef9a2c274e17d76cca345174",
"md5": "2174f6e61f9fbe35c9be2d40f4c934bc",
"sha256": "a4e026728ec2329f75a5944fbefc811bf50fbc7db31c448a69db8871a4956207"
},
"downloads": -1,
"filename": "python_mylog-0.10.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2174f6e61f9fbe35c9be2d40f4c934bc",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 20301,
"upload_time": "2024-01-27T13:25:30",
"upload_time_iso_8601": "2024-01-27T13:25:30.515970Z",
"url": "https://files.pythonhosted.org/packages/2d/43/cf9d5cf2269e3bf318e03152954282c07847ef9a2c274e17d76cca345174/python_mylog-0.10.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7b8ad808f86db6ea974f7fc6f1b08047da9fbf3d67e050b79db8e1f5c1052b37",
"md5": "46202bc5d9afad2c5a21bf485bc544b4",
"sha256": "fb82fe0c49afcba3b6e79198c79358f4d15aa9814d163baad84ab06d012270e8"
},
"downloads": -1,
"filename": "python_mylog-0.10.0.tar.gz",
"has_sig": false,
"md5_digest": "46202bc5d9afad2c5a21bf485bc544b4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 24403,
"upload_time": "2024-01-27T13:25:32",
"upload_time_iso_8601": "2024-01-27T13:25:32.235467Z",
"url": "https://files.pythonhosted.org/packages/7b/8a/d808f86db6ea974f7fc6f1b08047da9fbf3d67e050b79db8e1f5c1052b37/python_mylog-0.10.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-27 13:25:32",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "koviubi56",
"github_project": "mylog",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "python-mylog"
}