rslog


Namerslog JSON
Version 0.1.7 PyPI version JSON
download
home_pageNone
SummaryA simple, opinionated python library for logging locally. It will log a timestamp, the function name and add colors based on keywords in the log string that may indicate an error or warning.
upload_time2025-01-12 04:05:52
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseMIT License Copyright (c) 2024 Rich Stokes 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 logging logger python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # rslog

A simple, opinionated python library for logging locally.  

It will log a timestamp, the function name and add colours based on keywords in the log string that may indicate an error or warning.  

Drop-in replacement for `print()`. 

<img src="misc/ss.png" alt="Screenshot" width="70%">

## Installation

```bash
pip install rslog
```

## Usage

```python
from rslog import rslog

rslog("Hello, world!")
rslog("An error occurred!")
rslog("Warning: something went wrong.")
```


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "rslog",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "logging, logger, python",
    "author": null,
    "author_email": "Rich Stokes <rich@rsmail.co>",
    "download_url": "https://files.pythonhosted.org/packages/7b/af/e9ee9f3534ee2ea84e3127167ba47b6352f9392082cc22bec325d9ff94b6/rslog-0.1.7.tar.gz",
    "platform": null,
    "description": "# rslog\n\nA simple, opinionated python library for logging locally.  \n\nIt will log a timestamp, the function name and add colours based on keywords in the log string that may indicate an error or warning.  \n\nDrop-in replacement for `print()`. \n\n<img src=\"misc/ss.png\" alt=\"Screenshot\" width=\"70%\">\n\n## Installation\n\n```bash\npip install rslog\n```\n\n## Usage\n\n```python\nfrom rslog import rslog\n\nrslog(\"Hello, world!\")\nrslog(\"An error occurred!\")\nrslog(\"Warning: something went wrong.\")\n```\n\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Rich Stokes  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": "A simple, opinionated python library for logging locally. It will log a timestamp, the function name and add colors based on keywords in the log string that may indicate an error or warning.",
    "version": "0.1.7",
    "project_urls": {
        "Homepage": "https://github.com/richstokes/rslog"
    },
    "split_keywords": [
        "logging",
        " logger",
        " python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1a4ce35ae7bc62067c2df1ef475a448edd5639f21790e7aa4502f445ac27ab25",
                "md5": "083e7d5d58459fe89bf477fee801b80e",
                "sha256": "dad099c04be72a300a91c57815ed0b8b548b24c312bac58ec09613453bdcf518"
            },
            "downloads": -1,
            "filename": "rslog-0.1.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "083e7d5d58459fe89bf477fee801b80e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 4272,
            "upload_time": "2025-01-12T04:05:50",
            "upload_time_iso_8601": "2025-01-12T04:05:50.036236Z",
            "url": "https://files.pythonhosted.org/packages/1a/4c/e35ae7bc62067c2df1ef475a448edd5639f21790e7aa4502f445ac27ab25/rslog-0.1.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7bafe9ee9f3534ee2ea84e3127167ba47b6352f9392082cc22bec325d9ff94b6",
                "md5": "c6a8347aec2eab1c585754abc1349ce6",
                "sha256": "5eb2c8e3f98f589259c5d35d1304952e4d29a87713895adcc7afc48318fbe42f"
            },
            "downloads": -1,
            "filename": "rslog-0.1.7.tar.gz",
            "has_sig": false,
            "md5_digest": "c6a8347aec2eab1c585754abc1349ce6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 3629,
            "upload_time": "2025-01-12T04:05:52",
            "upload_time_iso_8601": "2025-01-12T04:05:52.175506Z",
            "url": "https://files.pythonhosted.org/packages/7b/af/e9ee9f3534ee2ea84e3127167ba47b6352f9392082cc22bec325d9ff94b6/rslog-0.1.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-12 04:05:52",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "richstokes",
    "github_project": "rslog",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "rslog"
}
        
Elapsed time: 0.54831s