Skip to main content

LogFlake Client Python

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

🏠 [LogFlake Website](https://logflake.io) | 🔥 [CloudPhoenix Website](https://cloudphoenix.it)

Downloads

PyPI Package Name Version Downloads
LogFlake.Client.Python PyPI - Version PyPI - Downloads

Usage

Retrieve your application-key from Application Settings in LogFlake UI.

from logflake import logflake

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

logger.shutdown()

Use logging handler example

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
    },
}

Metadata

Release files for logflake 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for logflake 1.2.1
File Size Uploaded
logflake-1.2.1.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for logflake 1.2.1
File Interpreter ABI Platform
logflake-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / logflake-1.2.1.tar.gz

Download URL logflake-1.2.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
abf3e8410ab9194df047ff613857625efd91f4514c84ba86644bcf3622cee002
BLAKE2b-256 checksum
How to use checksums
b14af36e59d8096b701e808e09ad226bb640462a8bf1c47af8db6d0213894c87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / logflake-1.2.1-py3-none-any.whl

Download URL logflake-1.2.1-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b101d835d1e192f82dbab2e788fde2f0ca53572f5d9b05b9adfda351a371939
BLAKE2b-256 checksum
How to use checksums
6426da1202332291fc794535859048239a4bf27cd432f603fa8030df74a8e998
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page