Skip to main content

AI-powered log monitoring SDK for Python applications

Project description

LogSentinel Python SDK

LogSentinel is a lightweight SDK for monitoring and analyzing logs in Python applications. It automatically captures request and response data, builds detailed metadata, and sends them to the LogSentinel AI platform for analysis.

Installation

pip install logsentinel

Setup

  1. Go to the LogSentinel Dashboard and create an API key.
  2. Add it to your environment variables:
export LOGSENTINEL_API_KEY="your_api_key_here"

Example (FastAPI)

from fastapi import FastAPI
from logosentinel import LogSentinelASGIMiddleware

app = FastAPI()
app.add_middleware(LogSentinelASGIMiddleware)

@app.post("/hello")
async def hello(data: dict):
    return {"message": "Hello, world!", "received": data}

Logs will automatically be captured and sent to your LogSentinel dashboard for AI analysis.

License

MIT License

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

logsentinel-0.1.2.tar.gz (188.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

logsentinel-0.1.2-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file logsentinel-0.1.2.tar.gz.

File metadata

  • Download URL: logsentinel-0.1.2.tar.gz
  • Upload date:
  • Size: 188.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.8

File hashes

Hashes for logsentinel-0.1.2.tar.gz
Algorithm Hash digest
SHA256 328857fcac0db6172b49179dc56d9478fb7b5065c2a77048aa808401a6f5af0d
MD5 1146f52eabccffd43179b1d278b37d54
BLAKE2b-256 fb3c26846655e53051d1d3fca6aff572a05d8b1adf529dd6720b6a909f2b5860

See more details on using hashes here.

File details

Details for the file logsentinel-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for logsentinel-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aeccb13442d2ea5bde3214e5b2afe717755d57cc21f0c7d2cab2169f2a78766a
MD5 6070f1acacd60b94335e6cca4217ea99
BLAKE2b-256 7943f08784fd734df1584c953460123766e046cd687f30877aaaf3edf466cec1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page