LogFlake Python Client
Project description
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 |
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
},
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
logflake-1.2.1.tar.gz
(3.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file logflake-1.2.1.tar.gz.
File metadata
- Download URL: logflake-1.2.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abf3e8410ab9194df047ff613857625efd91f4514c84ba86644bcf3622cee002
|
|
| MD5 |
dcd0d914f9bba88ba3267f982cfcde7a
|
|
| BLAKE2b-256 |
b14af36e59d8096b701e808e09ad226bb640462a8bf1c47af8db6d0213894c87
|
File details
Details for the file logflake-1.2.1-py3-none-any.whl.
File metadata
- Download URL: logflake-1.2.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b101d835d1e192f82dbab2e788fde2f0ca53572f5d9b05b9adfda351a371939
|
|
| MD5 |
96b165a10f15b7e127645b511bbe765a
|
|
| BLAKE2b-256 |
6426da1202332291fc794535859048239a4bf27cd432f603fa8030df74a8e998
|