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

Uploaded Python 3

File details

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

File metadata

  • Download URL: logsentinel-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 fcf62812df0cba409d4fe65e26b4626efdb3bd5e99026e726bfba265234f7cd2
MD5 12306988dcbf76d0b962ad4bc23dfcde
BLAKE2b-256 7e9be66e0d5affa518f38bdb5f8aef2f9e750ce574f3bfd8739f58581a1a6ac6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for logsentinel-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4626d69a0fe0878450fa2b726f4b04ccbe4bee3dcf4fac70de4342b0836f8610
MD5 54fcb40bc96ab3fa0daf469e9a911eb6
BLAKE2b-256 ed1ff71ae364754edc43ffcde065b3f7c5c673d4004b158ed39d90412bbda979

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