Skip to main content

🔭 Logmera

Self-hosted monitoring for AI applications

Log prompts, responses, and latency from your AI apps and view them in a simple dashboard.

What is Logmera?

Logmera is a self-hosted observability tool for AI / LLM applications.

It helps developers understand what their AI systems are doing.

Instead of printing logs to the console, Logmera stores:

  • prompts
  • responses
  • model name
  • latency

in a PostgreSQL database and shows them in a web dashboard.

Your data stays on your infrastructure.


Source Code: https://github.com/ThilakKumar-A/Logmera/


Why use Logmera?

When building AI applications it becomes hard to know:

  • what prompts were sent
  • what responses were returned
  • how long requests took
  • which model was used
  • when errors happened

Logmera helps you see and monitor all AI activity in one place.


How it works

Your AI App
     │
     ▼
Logmera SDK
     │
     ▼
Logmera Server
     │
     ▼
PostgreSQL
     │
     ▼
Dashboard

Your application sends logs to Logmera. Logmera stores them and displays them in the dashboard.


Quick Start

1. Install

pip install logmera

2. Start PostgreSQL

You can use any PostgreSQL database.

Example connection string:

postgresql://username:password@localhost:5432/database

If you do not have PostgreSQL installed, you can run it with Docker.

docker run --name logmera-postgres \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_DB=logmera \
-p 5432:5432 -d postgres:16

3. Start Logmera

logmera --db-url "postgresql://postgres:postgres@localhost:5432/logmera"

Server starts at:

http://127.0.0.1:8000

Open the Dashboard

Open your browser:

http://127.0.0.1:8000

You will see your AI logs in the dashboard.


Python Example

Add Logmera to your AI code.

import logmera

logmera.log(
    project_id="chatbot",
    prompt="Hello",
    response="Hi there",
    model="gpt-4o",
    latency_ms=120,
    status="success"
)

Now the request will appear in the Logmera dashboard.


API Example

You can also send logs using the API.

curl -X POST http://127.0.0.1:8000/logs \
-H "Content-Type: application/json" \
-d '{
  "project_id":"my-app",
  "prompt":"Hello",
  "response":"Hi",
  "model":"gpt-4o",
  "latency_ms":95,
  "status":"success"
}'

API Endpoints

Method Endpoint Description
GET /health Health check
POST /logs Create log
GET /logs Get logs

Configuration

Example CLI:

logmera --host 127.0.0.1 --port 8000

Environment variables:

DATABASE_URL
LOGMERA_URL
LOGMERA_TIMEOUT_SECONDS
LOGMERA_RETRIES

Deployment

Logmera can run on:

  • Local machines
  • Docker
  • VPS servers
  • Kubernetes
  • Cloud VMs

Because Logmera is self-hosted, your AI data remains private.


License

MIT License


Links

PyPI https://pypi.org/project/logmera/

GitHub https://github.com/ThilakKumar-A/Logmera/

Release files for logmera 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for logmera 0.1.5
File Size Uploaded
logmera-0.1.5.tar.gz 10.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for logmera 0.1.5
File Interpreter ABI Platform
logmera-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 21.1 kB

Release files / logmera-0.1.5.tar.gz

Download URL logmera-0.1.5.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
06a723415d925b23d2310484a2a63760acf19ee1080ba806b37851f62636a088
BLAKE2b-256 checksum
How to use checksums
53164912ab63545ee7699d8eba48dc3c390fede1354d950d219945e1fcf28850
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release files / logmera-0.1.5-py3-none-any.whl

Download URL logmera-0.1.5-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7997881e43f62cba89d55c2555d7b74b229b4831577584dd1f3c363fddfe52ca
BLAKE2b-256 checksum
How to use checksums
da5172822a6548e4c9f0eb42e38c7b293b7435bf9637feb567548b4dd7ce5b89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page