Skip to content

inctifra/logsentinel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages