whylog


Namewhylog JSON
Version 0.1 PyPI version JSON
download
home_pagehttps://github.com/iamlrk/whylog
SummaryPrints out a log message to terminal in color
upload_time2023-07-06 14:00:44
maintainer
docs_urlNone
author
requires_python
license
keywords python logging log print
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # whylog

This is an library to print color-coded log messages to the terminal. It prints in the following format.

`TIME [LOG TYPE] (file names) > (path of the call|line no): Message.`

## Log Levels

Print or Save to a log file.
| Log Level | Log Type      | Print Color | Background Color |
| ---------:| ------------- | ----------- | ---------------- |
|         0 | Emergency     | Black       | Red              |
|         1 | Alert         | Black       | Yellow           |
|         2 | Critical      | Black       | Magenta          |
|         3 | Error         | Red         | No Color         |
|         4 | Warning       | Yellow      | No Color         |
|         5 | Notice        | White       | Blue             |
|         6 | Informational | White       | No Color         |
|         7 | Debug         | Cyan        | No Color         |
|         8 | None          | NA          | NA               |

## Usage

### Code

```python
from whylog import Log

def main():
    test()

def test():
    log = Log(loglevel=8)
    log.emergency('Test emergency Print by importing')
    log.alert('Test alert Print by importing')
    log.critical('Test crtical Print by importing')
    log.error('Test error Print by importing')
    log.warning('Test warning Print by importing')
    log.notice('Test notice Print by importing')
    log.debug('Test Debug Print by importing')
    log.info('Test info Print by importing')

if __name__ == '__main__':
    main()
```

### Output

![Output](images/output.png)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/iamlrk/whylog",
    "name": "whylog",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,logging,log,print",
    "author": "",
    "author_email": "<lepakshiramkiran@hotmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/c7/34/2f739010515c7854dab83c7ed8dc31bb93e0c59eda5549edc704b3e39daf/whylog-0.1.tar.gz",
    "platform": null,
    "description": "# whylog\n\nThis is an library to print color-coded log messages to the terminal. It prints in the following format.\n\n`TIME [LOG TYPE] (file names) > (path of the call|line no): Message.`\n\n## Log Levels\n\nPrint or Save to a log file.\n| Log Level | Log Type      | Print Color | Background Color |\n| ---------:| ------------- | ----------- | ---------------- |\n|         0 | Emergency     | Black       | Red              |\n|         1 | Alert         | Black       | Yellow           |\n|         2 | Critical      | Black       | Magenta          |\n|         3 | Error         | Red         | No Color         |\n|         4 | Warning       | Yellow      | No Color         |\n|         5 | Notice        | White       | Blue             |\n|         6 | Informational | White       | No Color         |\n|         7 | Debug         | Cyan        | No Color         |\n|         8 | None          | NA          | NA               |\n\n## Usage\n\n### Code\n\n```python\nfrom whylog import Log\n\ndef main():\n    test()\n\ndef test():\n    log = Log(loglevel=8)\n    log.emergency('Test emergency Print by importing')\n    log.alert('Test alert Print by importing')\n    log.critical('Test crtical Print by importing')\n    log.error('Test error Print by importing')\n    log.warning('Test warning Print by importing')\n    log.notice('Test notice Print by importing')\n    log.debug('Test Debug Print by importing')\n    log.info('Test info Print by importing')\n\nif __name__ == '__main__':\n    main()\n```\n\n### Output\n\n![Output](images/output.png)\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Prints out a log message to terminal in color",
    "version": "0.1",
    "project_urls": {
        "Homepage": "https://github.com/iamlrk/whylog"
    },
    "split_keywords": [
        "python",
        "logging",
        "log",
        "print"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f32877d6c7e8364a19b7d24d271da5b2d1718141e450aa85089fc49b433571d9",
                "md5": "9fa8079f3f42d62af1cade0c50389aaf",
                "sha256": "edec5994e32b4e70f2d3a90f4b2f0ad02004811dd97428d275eca8f1c4720915"
            },
            "downloads": -1,
            "filename": "whylog-0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9fa8079f3f42d62af1cade0c50389aaf",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 15807,
            "upload_time": "2023-07-06T14:00:42",
            "upload_time_iso_8601": "2023-07-06T14:00:42.663921Z",
            "url": "https://files.pythonhosted.org/packages/f3/28/77d6c7e8364a19b7d24d271da5b2d1718141e450aa85089fc49b433571d9/whylog-0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c7342f739010515c7854dab83c7ed8dc31bb93e0c59eda5549edc704b3e39daf",
                "md5": "2f9c338d54799fe273604161aaec6c3b",
                "sha256": "001ffb7750e9b594b823a483e104e48b7dba7c43231df0e3f3d07d75a8474fdc"
            },
            "downloads": -1,
            "filename": "whylog-0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "2f9c338d54799fe273604161aaec6c3b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 15448,
            "upload_time": "2023-07-06T14:00:44",
            "upload_time_iso_8601": "2023-07-06T14:00:44.747458Z",
            "url": "https://files.pythonhosted.org/packages/c7/34/2f739010515c7854dab83c7ed8dc31bb93e0c59eda5549edc704b3e39daf/whylog-0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-06 14:00:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "iamlrk",
    "github_project": "whylog",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "whylog"
}
        
Elapsed time: 0.17370s