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.1.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.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: logsentinel-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 9d7a4eac11cf046a1c34e157f2ae053cdb106a149502274b13471cd0ebdc8189
MD5 99d874e627edea99f5e05b10bff7da55
BLAKE2b-256 6cc38e8d3917589f672068da42a23915860d03f37b61af9682f6951a0ef9f469

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for logsentinel-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 27d9ab7de01a2842eed11334242663d9792c5458935ff5d3588013a35eaec7e1
MD5 64f380dbf73a2f01546ab858d7427f7b
BLAKE2b-256 cbdfcc3d441f891b33bf9eef75251332e0e22f665eca61ba5a287bd946b887f8

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