quick-colorlog


Namequick-colorlog JSON
Version 0.0.7 PyPI version JSON
download
home_pageNone
SummaryColorized logging with Python.
upload_time2024-10-08 12:41:38
maintainerScott Walsh
docs_urlNone
authorScott Walsh
requires_python>=3.7
licenseNone
keywords logging color colorama formatter
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # `quick-colorlog`

Inspired by `coloredlogs` but without the subprocesses.

### Quickstart

```python
from quick_colorlog import init_colors

init_colors()
```

### Defaults

By default, the log level is set to `logging.INFO` and the output stream is
attached to `sys.stderr`. To change these, pass arguments to `init_colors()`

```python
from quick_colorlog import init_colors

init_colors(level=logging.DEBUG, output=sys.stdout)
```

### Example

```python
import logging
from quick_colorlog import init_colors

init_colors()

logger = logging.getLogger('testing')
logger.debug("test")
logger.info("test")
logger.warning("test")
logger.error("test")
logger.critical("test")
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "quick-colorlog",
    "maintainer": "Scott Walsh",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "scott@invisiblethreat.ca",
    "keywords": "logging, color, colorama, formatter",
    "author": "Scott Walsh",
    "author_email": "scott@invisiblethreat.ca",
    "download_url": "https://files.pythonhosted.org/packages/50/d9/c6ec93a0bde2f1e9620b6c6d376099f1037e43546e761f219b39913ae43a/quick_colorlog-0.0.7.tar.gz",
    "platform": null,
    "description": "# `quick-colorlog`\n\nInspired by `coloredlogs` but without the subprocesses.\n\n### Quickstart\n\n```python\nfrom quick_colorlog import init_colors\n\ninit_colors()\n```\n\n### Defaults\n\nBy default, the log level is set to `logging.INFO` and the output stream is\nattached to `sys.stderr`. To change these, pass arguments to `init_colors()`\n\n```python\nfrom quick_colorlog import init_colors\n\ninit_colors(level=logging.DEBUG, output=sys.stdout)\n```\n\n### Example\n\n```python\nimport logging\nfrom quick_colorlog import init_colors\n\ninit_colors()\n\nlogger = logging.getLogger('testing')\nlogger.debug(\"test\")\nlogger.info(\"test\")\nlogger.warning(\"test\")\nlogger.error(\"test\")\nlogger.critical(\"test\")\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Colorized logging with Python.",
    "version": "0.0.7",
    "project_urls": {
        "documentation": "https://github.com/invisiblethreat/quick-colorlog/blob/main/README.md",
        "homepage": "https://github.com/invisiblethreat/quick-colorlog",
        "repository": "https://github.com/invisiblethreat/quick-colorlog"
    },
    "split_keywords": [
        "logging",
        " color",
        " colorama",
        " formatter"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "aef75fd3acc393249d834639aa05e738463afaf96d7a76a84fda231c3940d1bb",
                "md5": "03a69d1a5dc8d351960a1a7dd85438be",
                "sha256": "083072bef0a1764655dd251cd2fae4627c700c118bf8dd273c5c104e6a1afa36"
            },
            "downloads": -1,
            "filename": "quick_colorlog-0.0.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "03a69d1a5dc8d351960a1a7dd85438be",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 2943,
            "upload_time": "2024-10-08T12:41:37",
            "upload_time_iso_8601": "2024-10-08T12:41:37.831742Z",
            "url": "https://files.pythonhosted.org/packages/ae/f7/5fd3acc393249d834639aa05e738463afaf96d7a76a84fda231c3940d1bb/quick_colorlog-0.0.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "50d9c6ec93a0bde2f1e9620b6c6d376099f1037e43546e761f219b39913ae43a",
                "md5": "a0f62999b1670ddfe73d2d2100e42428",
                "sha256": "72f21263704d7ca28ab82bde9ce09c553418c6da297ce7bd3dbd638844945f1c"
            },
            "downloads": -1,
            "filename": "quick_colorlog-0.0.7.tar.gz",
            "has_sig": false,
            "md5_digest": "a0f62999b1670ddfe73d2d2100e42428",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 2675,
            "upload_time": "2024-10-08T12:41:38",
            "upload_time_iso_8601": "2024-10-08T12:41:38.869213Z",
            "url": "https://files.pythonhosted.org/packages/50/d9/c6ec93a0bde2f1e9620b6c6d376099f1037e43546e761f219b39913ae43a/quick_colorlog-0.0.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-08 12:41:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "invisiblethreat",
    "github_project": "quick-colorlog",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "quick-colorlog"
}
        
Elapsed time: 0.36748s