# logstream
A package that allows you to create simple records of the results of your application\'s functionality, read them, and clean the file of all obsolete records when not needed.
Developed by Bohdan Terskow (c) 2024
## Examples of How To Use
CLI: pip install logstream-ua
```python
from logstream import LogStream
logfile_dir = './logs.txt'
logstream = LogStream(logfile_dir)
logstream(description='Test', level=3)
# description - record description
# level - level of record (5 - debug, 4 - info, 3 - warning, 2 - error, 1 - fatal)
# Other Code
read_logs = logstream.read()
print(read_logs) # show text into logfile
logstream.clear() # clear all file from records
```
Raw data
{
"_id": null,
"home_page": "https://github.com/gods-created/logstream-ua",
"name": "logstream-ua",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "python, logs, loguru, log, logstream, error, debug, info, fatal, warning",
"author": "Bohdan Terskow",
"author_email": "bohdanterskow@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/4d/7f/bb149a64c19e78ae5000c97ec5087d6739a6f1b683493f3368472387d829/logstream-ua-0.1.tar.gz",
"platform": null,
"description": "# logstream\r\n\r\nA package that allows you to create simple records of the results of your application\\'s functionality, read them, and clean the file of all obsolete records when not needed.\r\nDeveloped by Bohdan Terskow (c) 2024\r\n\r\n## Examples of How To Use\r\n\r\nCLI: pip install logstream-ua\r\n\r\n```python\r\nfrom logstream import LogStream\r\n\r\nlogfile_dir = './logs.txt'\r\nlogstream = LogStream(logfile_dir)\r\n\r\nlogstream(description='Test', level=3)\r\n# description - record description\r\n# level - level of record (5 - debug, 4 - info, 3 - warning, 2 - error, 1 - fatal)\r\n\r\n# Other Code\r\n\r\nread_logs = logstream.read()\r\nprint(read_logs) # show text into logfile\r\n\r\nlogstream.clear() # clear all file from records\r\n```\r\n",
"bugtrack_url": null,
"license": null,
"summary": "Logger Tool",
"version": "0.1",
"project_urls": {
"Homepage": "https://github.com/gods-created/logstream-ua"
},
"split_keywords": [
"python",
" logs",
" loguru",
" log",
" logstream",
" error",
" debug",
" info",
" fatal",
" warning"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a3d52cf44acdde88c2b5e2a8dfb135d3ae655ba0cee935dbda897fb8d510b594",
"md5": "51f4b0e2630ba7349fc6eda57003ae57",
"sha256": "0facc0036185ff50a3cebda81911b2f0a7097be1babf4aca49eefb8af52cc254"
},
"downloads": -1,
"filename": "logstream_ua-0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "51f4b0e2630ba7349fc6eda57003ae57",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4018,
"upload_time": "2024-08-02T09:09:27",
"upload_time_iso_8601": "2024-08-02T09:09:27.497346Z",
"url": "https://files.pythonhosted.org/packages/a3/d5/2cf44acdde88c2b5e2a8dfb135d3ae655ba0cee935dbda897fb8d510b594/logstream_ua-0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4d7fbb149a64c19e78ae5000c97ec5087d6739a6f1b683493f3368472387d829",
"md5": "3d6f707c3ae2b38602f48325eeb248fa",
"sha256": "10e1e4a4b159b1ad6af372b3ef534b5f1d18b7eb17e84f38cba60bc862401350"
},
"downloads": -1,
"filename": "logstream-ua-0.1.tar.gz",
"has_sig": false,
"md5_digest": "3d6f707c3ae2b38602f48325eeb248fa",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3578,
"upload_time": "2024-08-02T09:09:28",
"upload_time_iso_8601": "2024-08-02T09:09:28.855815Z",
"url": "https://files.pythonhosted.org/packages/4d/7f/bb149a64c19e78ae5000c97ec5087d6739a6f1b683493f3368472387d829/logstream-ua-0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-02 09:09:28",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "gods-created",
"github_project": "logstream-ua",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "logstream-ua"
}