logflake


Namelogflake JSON
Version 1.2.1 PyPI version JSON
download
home_pageNone
SummaryLogFlake Python Client
upload_time2024-04-12 12:24:54
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords logflake
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center">LogFlake Client Python</h1>

> This repository contains the sources for the client-side components of the LogFlake product suite for applications logs and performance collection for Python applications.

<h3 align="center">🏠 [LogFlake Website](https://logflake.io) |  🔥 [CloudPhoenix Website](https://cloudphoenix.it)</h3>

## Downloads

|                      PyPI Package Name                       |                                   Version                                   |                          Downloads                           |
|:------------------------------------------------------------:|:---------------------------------------------------------------------------:|:------------------------------------------------------------:|
| [LogFlake.Client.Python](https://pypi.org/project/logflake/) |          ![PyPI - Version](https://img.shields.io/pypi/v/logflake)          | ![PyPI - Downloads](https://img.shields.io/pypi/dm/logflake) |

## Usage

Retrieve your _application-key_ from Application Settings in LogFlake UI.

```python
from logflake import logflake

logger = logflake.LogFlake('application-key')
logger.send_log(logflake.LogLevels.DEBUG, None, 'Hello World')

logger.shutdown()
```

### Use logging handler example

```python
LOGGING = {
    "version": 1,
    "formatters": {
        "logflake": {
            "()": "django.utils.log.ServerFormatter",
            "format": f"%(name)s %(module)s.%(funcName)s() %(message)s",
        },
    },
    "handlers": {
        "logflake": {
            "class": "logflake.logflake.LogFlakeHandler", # REQUIRED
            "app_id": "application-key",                  # REQUIRED
            "formatter": "logflake",                      # OPTIONAL: Use custom formatter
            "server": "https://app.logflake.io",          # OPTIONAL: Use custom logging server
            "level": logging.ERROR,                       # OPTIONAL: Set minimum severity
        }
    },
    "root": {
        "handlers": ["logflake"], # REQUIRED
    },
}
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "logflake",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "logflake",
    "author": null,
    "author_email": "CloudPhoenix Srl <info@cloudphoenix.it>",
    "download_url": "https://files.pythonhosted.org/packages/b1/4a/f36e59d8096b701e808e09ad226bb640462a8bf1c47af8db6d0213894c87/logflake-1.2.1.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\">LogFlake Client Python</h1>\n\n> This repository contains the sources for the client-side components of the LogFlake product suite for applications logs and performance collection for Python applications.\n\n<h3 align=\"center\">\ud83c\udfe0 [LogFlake Website](https://logflake.io) |  \ud83d\udd25 [CloudPhoenix Website](https://cloudphoenix.it)</h3>\n\n## Downloads\n\n|                      PyPI Package Name                       |                                   Version                                   |                          Downloads                           |\n|:------------------------------------------------------------:|:---------------------------------------------------------------------------:|:------------------------------------------------------------:|\n| [LogFlake.Client.Python](https://pypi.org/project/logflake/) |          ![PyPI - Version](https://img.shields.io/pypi/v/logflake)          | ![PyPI - Downloads](https://img.shields.io/pypi/dm/logflake) |\n\n## Usage\n\nRetrieve your _application-key_ from Application Settings in LogFlake UI.\n\n```python\nfrom logflake import logflake\n\nlogger = logflake.LogFlake('application-key')\nlogger.send_log(logflake.LogLevels.DEBUG, None, 'Hello World')\n\nlogger.shutdown()\n```\n\n### Use logging handler example\n\n```python\nLOGGING = {\n    \"version\": 1,\n    \"formatters\": {\n        \"logflake\": {\n            \"()\": \"django.utils.log.ServerFormatter\",\n            \"format\": f\"%(name)s %(module)s.%(funcName)s() %(message)s\",\n        },\n    },\n    \"handlers\": {\n        \"logflake\": {\n            \"class\": \"logflake.logflake.LogFlakeHandler\", # REQUIRED\n            \"app_id\": \"application-key\",                  # REQUIRED\n            \"formatter\": \"logflake\",                      # OPTIONAL: Use custom formatter\n            \"server\": \"https://app.logflake.io\",          # OPTIONAL: Use custom logging server\n            \"level\": logging.ERROR,                       # OPTIONAL: Set minimum severity\n        }\n    },\n    \"root\": {\n        \"handlers\": [\"logflake\"], # REQUIRED\n    },\n}\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "LogFlake Python Client",
    "version": "1.2.1",
    "project_urls": {
        "Homepage": "https://github.com/CloudPhoenix/logflake-client-python"
    },
    "split_keywords": [
        "logflake"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6426da1202332291fc794535859048239a4bf27cd432f603fa8030df74a8e998",
                "md5": "96b165a10f15b7e127645b511bbe765a",
                "sha256": "7b101d835d1e192f82dbab2e788fde2f0ca53572f5d9b05b9adfda351a371939"
            },
            "downloads": -1,
            "filename": "logflake-1.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "96b165a10f15b7e127645b511bbe765a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 4011,
            "upload_time": "2024-04-12T12:24:52",
            "upload_time_iso_8601": "2024-04-12T12:24:52.952451Z",
            "url": "https://files.pythonhosted.org/packages/64/26/da1202332291fc794535859048239a4bf27cd432f603fa8030df74a8e998/logflake-1.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b14af36e59d8096b701e808e09ad226bb640462a8bf1c47af8db6d0213894c87",
                "md5": "dcd0d914f9bba88ba3267f982cfcde7a",
                "sha256": "abf3e8410ab9194df047ff613857625efd91f4514c84ba86644bcf3622cee002"
            },
            "downloads": -1,
            "filename": "logflake-1.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "dcd0d914f9bba88ba3267f982cfcde7a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 3831,
            "upload_time": "2024-04-12T12:24:54",
            "upload_time_iso_8601": "2024-04-12T12:24:54.245185Z",
            "url": "https://files.pythonhosted.org/packages/b1/4a/f36e59d8096b701e808e09ad226bb640462a8bf1c47af8db6d0213894c87/logflake-1.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-12 12:24:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "CloudPhoenix",
    "github_project": "logflake-client-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "logflake"
}
        
Elapsed time: 0.25649s